Home › Forum › SOFA › Using SOFA › [SOLVED] Mesh Object does not visible
Tagged: 64_bits, meshloader, SOFA_1608, visible, Windows_7
- This topic has 3 replies, 2 voices, and was last updated 8 years, 8 months ago by
Hugo.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
28 March 2017 at 17:27 #8840
Sisi
BlockedDear 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,
Siming28 March 2017 at 18:53 #8843Hugo
KeymasterHi Sisi,
You should rather look at the MeshGmshLoader.
An example is available in examples/Components/loader/MeshGmshLoader.scnBest,
Hugo
30 March 2017 at 10:53 #8849Sisi
BlockedThank you Hugo!
The reason was simply the wrong path of .msh and .obj file.
best,
30 March 2017 at 16:07 #8850Hugo
KeymasterThe easier, the better!
You’re welcome.Cheers,
Hugo
-
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
