- This topic has 3 replies, 2 voices, and was last updated 7 years, 8 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
Home › Forum › SOFA › Using SOFA › [SOLVED] Mesh Object does not visible
Tagged: 64_bits, meshloader, SOFA_1608, visible, Windows_7
Dear all,
I am new with Sofa. For my first test project, I created a .msh file with gmsh and load it with a meshloader in my .scn file. Actually, I just copy paste the large part of the liver.scn in the demos. However, the .msh object of mine is not visible. Does anybody has an idea why this is happened?
Attached my .scn file:
<?xml version="1.0" ?>
<Node name="broot" gravity="0 -9.81 0" dt="0.02">
<DefaultPipeline name="CollisionPipeline" verbose="0" />
<BruteForceDetection name="N2" />
<DefaultContactManager name="collision response" response="default" />
<DiscreteIntersection/>
<Node name="blood" gravity="0 -9.81 0">
<EulerImplicitSolver name="cg_odesolver" />
<CGLinearSolver name="linear solver" iterations="25" tolerance="1e-09" threshold="1e-09" />
<MeshGmshLoader name="meshLoader" filename="D:\DynamicBrainPhantom\mesh\blood.msh" />
<TetrahedronSetTopologyContainer name="topo" src="@meshLoader" />
<MechanicalObject name="dofs" src="@meshLoader" />
<TetrahedronSetGeometryAlgorithms template="Vec3d" name="GeomAlgo" />
<DiagonalMass name="computed using mass density" massDensity="1" />
<TetrahedralCorotationalFEMForceField template="Vec3d" name="FEM" method="large" poissonRatio="0.3" youngModulus="3000" computeGlobalMatrix="0" />
<FixedConstraint name="FixedConstraint" indices="3 39 64" />
<Node name="Visu" tags="Visual" gravity="0 -9.81 0">
<OglModel name="VisualModel" fileMesh="D:\DynamicBrainPhantom\mesh\blood.obj" />
<BarycentricMapping name="visual mapping" input="@../dofs" output="@VisualModel" />
</Node>
</Node>
</Node>
best,
Siming
Hi Sisi,
You should rather look at the MeshGmshLoader.
An example is available in examples/Components/loader/MeshGmshLoader.scn
Best,
Hugo
Thank you Hugo!
The reason was simply the wrong path of .msh and .obj file.
best,
The easier, the better!
You’re welcome.
Cheers,
Hugo
WARNING
The forum has been moved to GitHub Discussions.
Old topics and replies are kept here as an archive.