File: ParabolicConstraint.scn

package info (click to toggle)
sofa-framework 1.0~beta4-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 88,688 kB
  • ctags: 27,205
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 67
file content (63 lines) | stat: -rw-r--r-- 2,167 bytes parent folder | download | duplicates (5)
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
<Node dt="0.01"
      multiThreadSimulation="0"
      name="root"
      showBehaviorModels="1"
      showBoundingCollisionModels="0"
      showCollisionModels="0"
      showForceFields="0"
      showInteractionForceFields="0"
      showMappings="0"
      showMechanicalMappings="0"
      showNormals="0"
      showVisualModels="1"
      showWireFrame="0"
      time="0"
      >
  <Object type="CollisionPipeline" depth="6" verbose="0" draw="0"/>
  <Object type="BruteForceDetection" name="N2" />
  <Object type="NewProximityIntersection" name="Proximity" alarmDistance="0.3" contactDistance="0.2" />
  <Object type="CollisionResponse" name="Response" response="default" />
  <Object type="CollisionGroup" name="Group" />
  <Node name="LiverParabolic">
    <Object type="EulerImplicit" name="cg_odesolver" printLog="false"/>
    <Object type="CGLinearSolver" iterations="25" name="linear solver" tolerance="1.0e-9" threshold="1.0e-9" />


    <Object type="MechanicalObject" template="Rigid" name="DOFs"
	    position="0 0 0 0 0 0 1"
	    />
    
    <Object type="UniformMass" name="mass"
	    mass="1"
	    showAxisSizeFactor="0.1"
	    />
    
    <Object type="ParabolicConstraint" name="parabol"
	    indices="0"
            P1="1 0 0"
            P2="5 3 1"
            P3="7 6 -5"
            BeginTime="0.5"
            EndTime="1.5"
	    />
    

    <Node name="Visu">
      <Object type="OglModel" name="VisualModel" fileMesh="mesh/liver-smooth.obj" color="red" />
      <Object type="RigidMapping" object1="../.." object2="VisualModel" name="visual mapping"/>
    </Node>
    <Node name="Surf">
      <Object type="Sphere" name="CollisionModel" filename="mesh/liver.sph" />
	  <Object type="MechanicalObject" />
      <Object type="RigidMapping" name="sphere mapping"/>
    </Node>
  </Node>
  <Node name="CubeFixed">
    <Object type="MeshLoader" name="meshLoader" filename="mesh/cube.obj"/>
    <Object type="Mesh" />
    <Object type="MechanicalObject" scale="20" dz="-35"/>
    <Object type="Triangle" simulated="0" moving="0" />
    <Object type="OglModel" name="Visual" fileMesh="mesh/cube.obj" color="gray" scale="20" dz="-35" />
  </Node>

</Node>