File: TutorialMappingDragonBarycentric.scn

package info (click to toggle)
sofa-framework 1.0~beta4-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88,820 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (30 lines) | stat: -rw-r--r-- 1,029 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
<?xml version="1.0" ?>
<!-- See http://wiki.sofa-framework.org/wiki/TutorialMappingDragonBarycentric -->
<Node name="root" dt="0.01" gravity="0 0 -9.81" showBehavior="1">

  <EulerImplicitSolver name="EulerImplicit" />
  <CGLinearSolver name="CG Solver" />
  
  <Object type="MechanicalObject" name="Particles"/>
  <Object type="RegularGrid" name="RegularGrid"
	  nx="4" ny="4" nz="4"
	  xmin="-1" xmax="1"
	  ymin="-2" ymax="2"
	  zmin="0" zmax="3"
	  />
  
  <UniformMass name="Mass" totalmass="1" />
  <MeshSpringForceField name="Springs" stiffness="10" damping="1" />

  <PlaneForceField name="Floor" normal="0 0.2 1" stiffness="100" damping="1" draw="1" />
  <PlaneForceField name="Wall" normal="0 -1 0" d="-4" stiffness="100" damping="1" draw="1" color="1 1 1" />

  <Node name="Dragon" >

    <Object type="OglModel" name="DragonParticles" fileMesh="mesh/dragon.obj" scale="0.2" dz="1.5" rotation="90 0 -90"/>

    <Object type="BarycentricMapping" object1="../../Particles" object2="DragonParticles"/>

  </Node>

</Node>