/usr/share/sofa/examples/Demos/2d.scn is in sofa-data 1.0~beta4-9.
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 | <Node dt="0.004" showBehaviorModels="1" showCollisionModels="1" showMappings="1" showForceFields="1" gravity="0 -10 0" >
<Object type="EulerImplicit" />
<Object type="CGLinearSolver" iterations="25" />
<Node name="Cube1">
<Object type="MechanicalObject" template="Rigid2d" position="0 10 0" velocity="0.1 1 -200" />
<Object type="UniformMass" mass="1 1 0.83333"/>
<Node name="Points">
<Object type="MechanicalObject" template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" />
<Object type="RigidMapping"/>
<Object type="PlaneForceField" draw="1" stiffness="10000" />
</Node>
</Node>
<Node name="Cube2">
<Object type="MechanicalObject" template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="10" dx="2" />
<Object type="UniformMass" totalmass="4" />
<Object type="PlaneForceField" draw="1" stiffness="10000" />
<Object type="StiffSpringForceField" name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Node name="Cube3">
<Object type="MechanicalObject" template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="10" dx="-2" />
<Object type="UniformMass" totalmass="4" />
<Object type="PlaneForceField" draw="1" stiffness="10000" />
<Object type="StiffSpringForceField" name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Node name="Cube4">
<Object type="MechanicalObject" template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="8" dx="0" />
<Object type="UniformMass" totalmass="4" />
<Object type="PlaneForceField" draw="1" stiffness="10000" />
<Object type="StiffSpringForceField" name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Node name="Cube5">
<Object type="MechanicalObject" template="Vec2d" position="-0.5 -0.5 0.5 -0.5 0.5 0.5 -0.5 0.5" dy="12" dx="0" />
<Object type="UniformMass" totalmass="4" />
<Object type="PlaneForceField" draw="1" stiffness="10000" />
<Object type="StiffSpringForceField" name="Springs" spring="0 1 1000 1 1 1 2 1000 1 1 2 3 1000 1 1 3 0 1000 1 1 0 2 500 0 1.414 1 3 500 0 1.414" />
</Node>
<Object type="StiffSpringForceField" name="link1" object1="Cube1/Points" object2="Cube2" spring="1 0 2000 1 1 2 3 2000 1 1 1 3 1000 1 1.414 2 0 1000 1 1.414" />
<Object type="StiffSpringForceField" name="link2" object1="Cube3" object2="Cube1/Points" spring="1 0 2000 1 1 2 3 2000 1 1 1 3 1000 1 1.414 2 0 1000 1 1.414" />
<Object type="StiffSpringForceField" name="link3" object1="Cube1/Points" object2="Cube4" spring="0 3 2000 1 1 1 2 2000 1 1 0 2 1000 1 1.414 1 3 1000 1 1.414" />
<Object type="StiffSpringForceField" name="link4" object1="Cube5" object2="Cube1/Points" spring="0 3 2000 1 1 1 2 2000 1 1 0 2 1000 1 1.414 1 3 1000 1 1.414" />
</Node>
|