17 October 2021 at 18 h 57 min #20631
I 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 h 46 min #20635
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?
Hugo18 October 2021 at 17 h 12 min #20650
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 node
Yes, I am using v21.06.00.18 October 2021 at 18 h 30 min #20652
Thanks @vanisri for your feedback.
Would there be a way to have access to your mesh file?
Hugo18 October 2021 at 20 h 39 min #2065319 October 2021 at 12 h 14 min #20662
Damned 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.
Hugo19 October 2021 at 20 h 08 min #20666
Thank you! I look forward to the solution20 October 2021 at 15 h 37 min #20671
A solution is available in the PR #2155. It will soon be merged inside SOFA.
Hugo20 October 2021 at 16 h 06 min #20672CamilleKParticipant
- Postdoc - Defrost
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.06
Camille21 October 2021 at 21 h 36 min #20682
Thank you !
- You must be logged in to reply to this topic.