Thanks to your comment Hugo.
I already checked both scn examples.
Today, I can solve this problem by modifying the code of the “SofaNonUniformFem” module.
In “SofaNonUniformFem/HexahedronCompositeFEMMapping.cpp” file line 44,
the original code was like below.
“template class HexahedronCompositeFEMMapping< Mapping< Vec3dTypes, Vec3dTypes > >;”
To use this class outside from the module (my own simulation project with cpp platform) this line should be changed like below.
“template class SOFA_SOFANONUNIFORMFEM_API HexahedronCompositeFEMMapping< Mapping< Vec3dTypes, Vec3dTypes > >;”
I hope my experience will help others.
Best.
Dear Sara.
Thanks a lot.
I followed above post (make simple rectangle .brep file with freeCAD and make .msh file with Gmsh) but my .msh file not work in SOFA.
I upload my .brep file and .msh file in following link.
I think this is because of entities.
when I load liver.msh(SOFA tutorial model) in Gmsh, Info shows like bellow.
Info : 101 nodes
Info : 596 elements
but when I load my test msh file in Gmsh, Info shows like bellow.
Info : 27 entities
Info : 101 nodes
Info : 596 elements
but I don’t know how to overcome this. Is there anyone who overcome this problem?
Thanks a lot.
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.