-
Notifications
You must be signed in to change notification settings - Fork 299
/
DistanceFromTargetMapping.scn
34 lines (30 loc) · 1.88 KB
/
DistanceFromTargetMapping.scn
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
<?xml version="1.0"?>
<Node name="root" gravity="0 -9.81 0" dt="0.01">
<RequiredPlugin name="Sofa.Component.IO.Mesh"/> <!-- Needed to use components [StringMeshCreator] -->
<RequiredPlugin name="Sofa.Component.LinearSolver.Direct"/> <!-- Needed to use components [EigenSimplicialLLT] -->
<RequiredPlugin name="Sofa.Component.Mapping.NonLinear"/> <!-- Needed to use components [DistanceFromTargetMapping DistanceMapping] -->
<RequiredPlugin name="Sofa.Component.Mass"/> <!-- Needed to use components [DiagonalMass] -->
<RequiredPlugin name="Sofa.Component.ODESolver.Backward"/> <!-- Needed to use components [EulerImplicitSolver] -->
<RequiredPlugin name="Sofa.Component.SolidMechanics.Spring"/> <!-- Needed to use components [RestShapeSpringsForceField] -->
<RequiredPlugin name="Sofa.Component.StateContainer"/> <!-- Needed to use components [MechanicalObject] -->
<RequiredPlugin name="Sofa.Component.Topology.Container.Dynamic"/> <!-- Needed to use components [EdgeSetGeometryAlgorithms EdgeSetTopologyContainer] -->
<DefaultAnimationLoop/>
<DefaultVisualManagerLoop/>
<StringMeshCreator name="loader" resolution="20" scale3d="1 1 1" />
<EulerImplicitSolver />
<EigenSimplicialLLT />
<EdgeSetTopologyContainer name="topology" position="@loader.position" edges="@loader.edges"/>
<MechanicalObject name="dofs" template="Vec3" />
<EdgeSetGeometryAlgorithms drawEdges="true" />
<DiagonalMass name="mass" totalMass="1e-3"/>
<Node name="attach">
<MechanicalObject template="Vec1"/>
<DistanceFromTargetMapping indices="0" targetPositions="0 0 0"/>
<RestShapeSpringsForceField/>
</Node>
<Node name="extensionsNode" >
<MechanicalObject template="Vec1" name="extensionsDOF" />
<DistanceMapping name="distanceMapping" topology="@../topology"/>
<RestShapeSpringsForceField/>
</Node>
</Node>