/usr/share/sofa/examples/CUDA/quadSpringSphereCUDA.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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | <Node name="root" gravity="0.0 -2.0 0.0" dt="0.04" showBehaviorModels="0" showCollisionModels="0" showMappings="0" showForceFields="0">
<Object type="CollisionPipeline" verbose="0" />
<Object type="BruteForceDetection" name="N2" />
<Object type="CollisionResponse" name="Response" />
<Object type="CudaProximityIntersection" alarmDistance="0.002" contactDistance="0.001" />
<Node name="Floor">
<Object type="RegularGrid"
nx="2" ny="1" nz="2"
xmin="20" xmax="-20"
ymin="-3.05" ymax="-3.05"
zmin="-20" zmax="20" />
<Object type="MechanicalObject" />
<!--
<Object type="Triangle" simulated="0" moving="0" />
<Object type="Line" simulated="0" moving="0" />
<Object type="Point" simulated="0" moving="0" />
-->
<Node name="Visu">
<Object type="OglModel" name="Visual" color="red"/>
<Object type="IdentityMapping" object1="../.." object2="Visual"/>
</Node>
</Node>
<Node name="SquareCloth1">
<!--<Object type="CGImplicit" rayleighMass="0.05" iterations="10" threshold="0.000001"/>-->
<Object type="EulerImplicit" rayleighMass="0.05"/>
<Object type="CGLinearSolver" iterations="10" threshold="0.000001"/>
<Object type="MechanicalObject" template="CudaVec3f" />
<Object type="UniformMass" totalmass="100" />
<Object type="RegularGrid"
nx="100" ny="1" nz="100"
xmin="12" xmax="-12"
ymin="7" ymax="7"
zmin="-12" zmax="12" />
<Object type="BoxConstraint" box="-12 7 12 -10 7 12 10 7 12 12 7 12"/>
<Object type="MeshSpringForceField" name="Springs" stiffness="1000" damping="0"/>
<Object type="QuadBendingSprings" name="Bend" stiffness="2000" damping="1"/>
<Object type="SphereForceField" stiffness="1000" damping="1" center="0 1 3" radius="4" />
<Object type="PlaneForceField" stiffness="1000" damping="20" normal="0 1 0" d="-3" />
<!--<Object type="SpatialGridContainer" cellWidth="1" autoUpdate="true" showGrid="true" />-->
<Node name="Visu">
<!--<Object type="OglModel" name="Visual" color="green"/>
<Object type="IdentityMapping" object1="../.." object2="Visual"/>-->
<Object type="CudaVisualModel" template="CudaVec3f" diffuse="0 0.8 0 1.0" computeNormals="true" />
</Node>
<Node>
<Object type="RegularGrid"
nx="4" ny="1" nz="4"
xmin="12" xmax="-12"
ymin="7" ymax="7"
zmin="-12" zmax="12" />
/>
<Object type="CudaSphereModel" radius="1.0" contactStiffness="1" />
<MechanicalObject template="CudaVec3f"/>
<Object type="SubsetMapping" />
</Node>
<!--
<Node name="Surf">
<Object type="MechanicalObject" />
<Object type="RegularGrid"
nx="100" ny="1" nz="100"
xmin="12" xmax="-12"
ymin="7" ymax="7"
zmin="-12" zmax="12" />
<Object type="IdentityMapping" />
<Object type="Triangle" />
</Node>
-->
</Node>
<Node name="Sphere">
<Object type="OglModel" name="Visual" fileMesh="mesh/sphere.obj" scale="3.95" dx="0" dy="1" dz="3" color="blue"/>
</Node>
</Node>
|