Skip to content

Commit 3da30c8

Browse files
author
Remi Bessard
committed
[IO] Update MeshVTKLoader example scene
1 parent 1a7032c commit 3da30c8

File tree

2 files changed

+10420
-20
lines changed

2 files changed

+10420
-20
lines changed
Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
11
<!-- For more details see: https://wiki.sofa-framework.org/tdev/wiki/Notes/NewLoaderArchitecture -->
22
<Node name="Root" gravity="0 -9.81 0" dt="0.02">
3-
<RequiredPlugin name="Sofa.Component.Collision.Detection.Algorithm"/> <!-- Needed to use components [BVHNarrowPhase BruteForceBroadPhase CollisionPipeline] -->
4-
<RequiredPlugin name="Sofa.Component.Collision.Detection.Intersection"/> <!-- Needed to use components [MinProximityIntersection] -->
5-
<RequiredPlugin name="Sofa.Component.Collision.Response.Contact"/> <!-- Needed to use components [CollisionResponse] -->
3+
<RequiredPlugin name="Sofa.Component.SceneUtility"/> <!-- Needed to use components [AddDataRepository] -->
64
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [MeshVTKLoader] -->
7-
<RequiredPlugin name="Sofa.Component.LinearSolver.Iterative"/> <!-- Needed to use components [CGLinearSolver] -->
8-
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
9-
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
10-
<RequiredPlugin name="Sofa.Component.Topology.Container.Dynamic"/> <!-- Needed to use components [TriangleSetGeometryAlgorithms TriangleSetTopologyContainer TriangleSetTopologyModifier] -->
115
<RequiredPlugin name="Sofa.Component.Visual"/> <!-- Needed to use components [VisualStyle] -->
126
<RequiredPlugin name="Sofa.GL.Component.Rendering3D"/> <!-- Needed to use components [OglModel] -->
137

8+
<AddDataRepository path="../../../../share" />
9+
1410
<DefaultAnimationLoop/>
1511
<VisualStyle displayFlags="showVisual showBehaviorModels showForceFields showCollision showMapping" />
16-
<CollisionPipeline name="DefaultCollisionPipeline" verbose="0" draw="0" depth="6" />
17-
<BruteForceBroadPhase/>
18-
<BVHNarrowPhase/>
19-
<MinProximityIntersection name="Proximity" alarmDistance="0.3" contactDistance="0.2" />
20-
<CollisionResponse name="Response" response="PenalityContactForceField" />
12+
2113
<Node name="vtk file">
22-
<EulerImplicitSolver name="cg_odesolver" printLog="false" rayleighStiffness="0.1" rayleighMass="0.1" />
23-
<CGLinearSolver iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />
2414
<MeshVTKLoader name="VtkLoader" filename="mesh/liver.vtk" flipNormals="0"/>
25-
<!-- <MeshGmshLoader name="loader" filename="mesh/square3.msh" /> -->
26-
<MechanicalObject name="dofs" scale="1" src="@VtkLoader" />
27-
<TriangleSetTopologyContainer name="topo" src="@VtkLoader" />
28-
<TriangleSetTopologyModifier name="modif" />
29-
<TriangleSetGeometryAlgorithms name="triGeo" />
30-
<OglModel name="VisualModel" src="@VtkLoader" color="red" texturename="textures/liver-texture-square.png" />
15+
<OglModel name="VisualModel" src="@VtkLoader" color="red" texturename="textures/liver-texture-square.png" />
16+
</Node>
17+
<Node name="vtk polyline file" activated="true">
18+
<MeshVTKLoader name="VtkLoader" filename="mesh/skull.vtp" scale3d="1000 1000 1000" translation="100 250 100" triangulate="1" />
19+
<OglModel name="VisualModel" src="@VtkLoader" color="white" />
3120
</Node>
3221
</Node>

0 commit comments

Comments
 (0)