/usr/share/sofa/examples/Demos/ImprovingMeshQuality.scn is in sofa-data 1.0~beta4-7.
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 41 42 43 | <Node name="root" dt="0.05" showBehaviorModels="1" showCollisionModels="1" showMappings="0" showForceFields="1" showInteractionForceFields="1" showBoundingTree="0" showWireFrame="1" gravity="0 0 0">
<Object type="CollisionPipeline" verbose="0" />
<Object type="BruteForceDetection" name="N2" />
<Object type="CollisionResponse" response="default" />
<Object type="MinProximityIntersection" name="Proximity" alarmDistance="0.8" contactDistance="0.5" />
<Object type="CollisionGroup" />
<Node name="Simulation">
<Object type="CGImplicit" iterations="40" tolerance="1e-6" threshold="1e-10"/>
<Node name="Mesh">
<Object type="TriangleSetTopologyContainer" name="Container1" fileTopology="mesh/square3.msh" />
<Object type="MechanicalObject"/>
<Object type="TriangleSetTopologyModifier"/>
<Object type="TriangleSetGeometryAlgorithms"/>
<Object type="UniformMass" totalmass="0.1" />
<Object type="BoxConstraint" box="0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 1 1 0"/>
<Node name="Visual">
<Object type="OglModel" name="Visual" color="green"/>
<Object type="IdentityMapping" object1="../.." object2="Visual"/>
</Node>
<Node name="Visual2">
<Object type="OglModel" name="Visual" color="red" dz="0.01"/>
"/>
</Node>
<Node name="Barycenters">
<Object type="PointSetTopologyContainer" name="Container2"/>
<Object type="PointSetTopologyModifier"/>
<Object type="Mesh2PointTopologicalMapping" object1="Container1" object2="Container2" triangleBaryCoords="0.33 0.33 0" />
<Object type="MechanicalObject" name="Points" />
<Object type="Mesh2PointMechanicalMapping"/>
</Node>
<Node name="Circumcenters">
<Object type="PointSetTopologyContainer" name="Container2"/>
<Object type="PointSetTopologyModifier"/>
<Object type="Mesh2PointTopologicalMapping" object1="Container1" object2="Container2" triangleBaryCoords="0.33 0.33 0" />
<Object type="MechanicalObject" name="Points" />
<Object type="CircumcenterMapping"/>
<Object type="Sphere" radius="0.01" />
</Node>
</Node>
<Object type="VectorSpringForceField" object1="Mesh/Barycenters/Points" object2="Mesh/Circumcenters/Points" stiffness="1000" viscosity="1" />
</Node>
</Node>
|