MeshGmshLoader
This component belongs to the category of the MeshLoaders.
The MeshGmshLoader loads a mesh from a file under the format *.msh. Such a mesh file can be either surface or volumetric meshes. The *.msh meshes can be generated using softwares like Gmsh. To be noted, an interesting project couples SOFA and Gmsh in python for applications such as parametric design or design optimization.
Usage
No pre-requisite in your scene to use a MeshLoader.
Example
This component is used as follows in XML format:
<MeshGmshLoader name="GmshLoader" filename="mesh/square3.msh" createSubelements="true" flipNormals="0" />
or using SofaPython3:
'MeshGmshLoader', name="ObjLoader", filename="mesh/square3.msh", createSubelements="true", flipNormals="0") node.addObject(
An example scene involving a MeshGmshLoader is available in examples/Components/loader/MeshGmshLoader.scn
Last modified: 26 October 2023