/usr/share/sofa/examples/Tutorials/Dentistry_Haptics/dentalSurgery_05a.scn is in sofa-data 1.0~beta4-11.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | <!--
+ Added collision model (DistanceGrid) for the tooth
-->
<Node name="root" dt="0.001" showBehaviorModels="0" showCollisionModels="0" showMappings="0" showForceFields="0" >
<Object type="Gravity" name="G" gravity="0 -9.81 0" />
<Object type="CollisionPipeline" name="pipeline" depth="6" verbose="0"/>
<Object type="BruteForceDetection" name="detection" />
<Object type="CollisionResponse" name="response" response="default" />
<Object type="MinProximityIntersection" name="proximity" alarmDistance="0.03" contactDistance="0.03" />
<Node name="Tooth" >
<Node name="VisualModel" >
<Object type="OglModel" name="ToothVisualModel" fileMesh="data/mesh/tooth_closed.obj" color="white" />
</Node>
<Node name="CollisionModel" >
<Object type="DistanceGrid" fileRigidDistanceGrid="data/mesh/tooth-closed3-128.fmesh" scale="1.0" usePoints="0" proximity="0.0" contactStiffness="50.0" contactFriction="0.0"/>
</Node>
</Node>
<Node name="Instrument" >
<Object type="EulerImplicitSolver" name="ODE solver" rayleighStiffness="0.01" rayleighMass="1.0" />
<Object type="CGLinearSolver" name="linear solver" iterations="25" tolerance="1e-10" threshold="10e-10" />
<Object type="MechanicalObject" name="instrumentState" template="Rigid" />
<Object type="UniformMass" name="mass" totalmass="0.05" filename="BehaviorModels/dental_instrument.rigid" />
<Node name="VisualModel" >
<Object type="OglModel" name="InstrumentVisualModel" fileMesh="data/mesh/dental_instrument.obj" color="1.0 0.2 0.2 1.0" />
<Object type="RigidMapping" name="MM->VM mapping" object1="instrumentState" object2="InstrumentVisualModel" />
</Node>
<Node name="CollisionModel" >
<Object type="MeshLoader" filename="data/mesh/dental_instrument_centerline.obj" />
<Object type="Mesh" name="InstrumentCollisionModel" />
<Object type="MechanicalObject" name="instrumentCollisionState" />
<Object type="Line" name="instrument" contactStiffness="5" />
<Object type="Point" name="instrument" contactStiffness="5" />
<Object type="RigidMapping" name="MM->CM mapping" object1="instrumentState" object2="instrumentCollisionState" />
</Node>
</Node>
</Node>
|