|
1 | 1 | <Node name="root" gravity="0.0 -2.0 0.0" dt="0.04"> |
| 2 | + <RequiredPlugin name="SofaBoundaryCondition"/> |
| 3 | + <RequiredPlugin name="SofaConstraint"/> |
| 4 | + <RequiredPlugin name="SofaDeformable"/> |
| 5 | + <RequiredPlugin name="SofaEngine"/> |
| 6 | + <RequiredPlugin name="SofaGeneralDeformable"/> |
| 7 | + <RequiredPlugin name="SofaImplicitOdeSolver"/> |
| 8 | + <RequiredPlugin name="SofaLoader"/> |
| 9 | + <RequiredPlugin name="SofaMeshCollision"/> |
| 10 | + <RequiredPlugin name="SofaOpenglVisual"/> |
| 11 | + <RequiredPlugin name="ShapeMatchingPlugin"/> |
| 12 | + |
2 | 13 | <FreeMotionAnimationLoop initial_guess="true" displayTime="1" /> |
3 | | - <CollisionPipeline verbose="0" /> |
4 | | - <BruteForceDetection name="N2" /> |
| 14 | + <DefaultPipeline verbose="0" draw="0" /> |
| 15 | + <BruteForceBroadPhase /> |
| 16 | + <BVHNarrowPhase /> |
5 | 17 | <LocalMinDistance name="Proximity" alarmDistance="0.50" contactDistance="0.25" /> |
6 | | - <CollisionResponse name="Response" response="FrictionContact" /> |
| 18 | + <DefaultContactManager name="Response" response="FrictionContact" /> |
7 | 19 | <LCPConstraintSolver maxIt="1000" tolerance="0.001" /> |
| 20 | + <DefaultAnimationLoop /> |
| 21 | + <DefaultVisualManagerLoop /> |
8 | 22 | <Node name="Floor"> |
9 | | - <RegularGrid nx="2" ny="1" nz="2" xmin="20" xmax="-20" ymin="-3.05" ymax="-3.05" zmin="-20" zmax="20" /> |
| 23 | + <RegularGridTopology nx="2" ny="1" nz="2" xmin="20" xmax="-20" ymin="-3.05" ymax="-3.05" zmin="-20" zmax="20" /> |
10 | 24 | <MechanicalObject /> |
11 | | - <Triangle simulated="0" moving="0" group="1" /> |
12 | | - <Line simulated="0" moving="0" group="1" /> |
13 | | - <Point simulated="0" moving="0" group="1" /> |
| 25 | + <TriangleCollisionModel simulated="0" moving="0" group="1" /> |
| 26 | + <LineCollisionModel simulated="0" moving="0" group="1" /> |
| 27 | + <PointCollisionModel simulated="0" moving="0" group="1" /> |
14 | 28 | <Node name="Visu"> |
15 | 29 | <OglModel name="Visual" color="red" /> |
16 | 30 | <IdentityMapping input="@.." output="@Visual" /> |
17 | 31 | </Node> |
18 | 32 | </Node> |
19 | 33 | <Node name="Sphere"> |
20 | | - <MeshObjLoader filename="mesh/sphere.obj" name="loader" /> |
21 | | - <Mesh src="@loader" /> |
| 34 | + <MeshOBJLoader filename="mesh/sphere.obj" name="loader" /> |
| 35 | + <MeshTopology src="@loader" /> |
22 | 36 | <MechanicalObject src="@loader" scale="3.95" dx="0" dy="1" dz="3" /> |
23 | | - <Triangle simulated="0" moving="0" group="1" /> |
24 | | - <Line simulated="0" moving="0" group="1" /> |
25 | | - <Point simulated="0" moving="0" group="1" /> |
| 37 | + <TriangleCollisionModel simulated="0" moving="0" group="1" /> |
| 38 | + <LineCollisionModel simulated="0" moving="0" group="1" /> |
| 39 | + <PointCollisionModel simulated="0" moving="0" group="1" /> |
26 | 40 | <Node name="Visu"> |
27 | 41 | <OglModel name="Visual" color="blue" /> |
28 | 42 | <IdentityMapping input="@.." output="@Visual" /> |
29 | 43 | </Node> |
30 | 44 | </Node> |
31 | 45 | <Node name="SquareCloth1"> |
32 | | - <EulerImplicit rayleighMass="0.05" /> |
| 46 | + <EulerImplicitSolver rayleighMass="0.05" /> |
33 | 47 | <CGLinearSolver iterations="10" threshold="0.000001" tolerance="1e-5"/> |
34 | | - <RegularGrid nx="15" ny="1" nz="15" xmin="12" xmax="-12" ymin="7" ymax="7" zmin="-12" zmax="12" /> |
| 48 | + <RegularGridTopology nx="15" ny="1" nz="15" xmin="12" xmax="-12" ymin="7" ymax="7" zmin="-12" zmax="12" /> |
35 | 49 | <MechanicalObject /> |
36 | | - <UniformMass totalmass="100" /> |
| 50 | + <UniformMass totalMass="100" /> |
37 | 51 | <BoxConstraint box="-12.1 7 11.9 -9.9 7 12.1 9.9 7 11.9 12.1 7 12.1" /> |
38 | 52 | <MeshSpringForceField name="Springs" stiffness="1000" damping="0" /> |
39 | 53 | <QuadBendingSprings name="Bend" stiffness="2000" damping="1" /> |
40 | | - <RotationFinder showRotations="true" axisToFlip="1" /> |
| 54 | + <ShapeMatchingRotationFinder showRotations="true" axisToFlip="1" /> |
41 | 55 | <PrecomputedConstraintCorrection rotations="1" /> |
42 | 56 | <Node name="Visu"> |
43 | 57 | <OglModel name="Visual" color="green" /> |
44 | 58 | <IdentityMapping input="@.." output="@Visual" /> |
45 | 59 | </Node> |
46 | | - <Point group="2" /> |
| 60 | + <PointCollisionModel group="2" /> |
47 | 61 | </Node> |
48 | 62 | </Node> |
0 commit comments