Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 1.18 KB

10_MeshGmshLoader.md

File metadata and controls

30 lines (19 loc) · 1.18 KB

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:

node.addObject('MeshGmshLoader', name="ObjLoader", filename="mesh/square3.msh", createSubelements="true", flipNormals="0")

An example scene involving a MeshGmshLoader is available in examples/Component/IO/Mesh/MeshGmshLoader.scn