Home › Forum › SOFA › Using SOFA › [SOLVED] Unable to load mesh
Tagged: SOFA_2106, Windows_10
- This topic has 9 replies, 3 voices, and was last updated 4 years, 1 month ago by
bani.
-
AuthorPosts
-
17 October 2021 at 18:57 #20631
bani
BlockedI am unable to load mesh because of the error – File finally appears not to be a Gmsh file. It is a .msh file created using Gmsh. Kindly help with how to proceed.
17 October 2021 at 21:46 #20635Hugo
KeymasterHi @vanisri
Please provide us more insight about your problem:
– the file about which you are talking
– the full error log you are receiving
– you confirm you are using the v21.06 SOFA release?Best
Hugo
18 October 2021 at 17:12 #20650bani
BlockedHi @Hugo,
I am using a .msh file that I made of a 2D square using Gmsh.
The error I receive is:
[ERROR] [MeshGmshLoader(meshLoaderCoarse)] File ‘E:\Softwares\GmSH\gmsh-4.8.4-Windows64\gmsh-4.8.4-Windows64\sq.msh’ finally appears not to be a Gmsh file.
[ERROR] [ConstantForceField(constantFF1)] Impossible to compute force from totalForce since vector indices size is zero
[WARNING] [RealGUI] Global Bounding Box seems very small; Your viewer settings (based on the bbox) are likely invalid, switching to default value of [-1,-1,-1,1,1,1].This is caused by using component which does not implement properly the updateBBox function.You can remove this warning by manually forcing a value in the parameter bbox=”minX minY minZ maxX maxY maxZ” in your root nodeYes, I am using v21.06.00.
18 October 2021 at 18:30 #20652Hugo
Keymaster18 October 2021 at 20:39 #2065319 October 2021 at 12:14 #20662Hugo
KeymasterDamned I get the same error.
The SOFA loader seems therefore not to support the latest gmsh format.I created a dedicated issue on GitHub.
I will keep you posted.
Best
Hugo
19 October 2021 at 20:08 #20666bani
BlockedThank you! I look forward to the solution
20 October 2021 at 15:37 #20671Hugo
KeymasterHi Bani
A solution is available in the PR #2155. It will soon be merged inside SOFA.
Best wishes,
Hugo
20 October 2021 at 16:06 #20672CamilleK
BlockedHello Bani,
The solution mentioned by Hugo should indeed be merged soon (the update is under review). In the meantime, a workaround is to open your mesh with Gmsh, and export it with an older msh format (for instance version 2 ASCII).
When in Gmsh gui, you can go to File > Export, then select the msh format (Mesh – Gmsh MSH(*.msh) in the dropdown menu, and click “Save”. You should have a popup “MSH options” which appears, on which you can select the format with which you want to export the mesh. You can switch then from the default “Version 4 ASCII” to “Version 2 ASCII”, which is supported by SOFA v21.06Best,
Camille
21 October 2021 at 21:36 #20682bani
BlockedThank you !
-
AuthorPosts
- You must be logged in to reply to this topic.
