File: SparseGridMultipleTopology.scn

package info (click to toggle)
sofa-framework 1.0~beta4-12
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 88,828 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (70 lines) | stat: -rw-r--r-- 2,548 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
64
65
66
67
68
69
70
<Node name="root"  gravity="0 0 0" dt="0.02" showBehaviorModels="0" showVisualModels="1" showCollisionModels="0" showMappings="0" showForceFields="0">
	
	
	<Object type="CollisionPipeline" depth="6" verbose="0" draw="0"/>
	<Object type="BruteForceDetection" name="N2" />
	<Object type="MinProximityIntersection" name="Proximity" alarmDistance="0.5" contactDistance="0.3" />
	<Object type="CollisionResponse" name="Response" response="default" />
	<Object type="CollisionGroup" name="Group" />
	

	<Node name="frog with several stiffnesses">
		
		
		
		
		
		
		<Object type="SparseGridMultiple"
				  n="9 9 7"
				  fileTopologies="mesh/frog_body.obj mesh/frog_eyes.obj mesh/frog_eyebrows.obj mesh/frog_lips.obj"
				  stiffnessCoefs="10 100 100 .2"
				  massCoefs="1 1 1 1"
				  nbVirtualFinerLevels="1"
				  />
		<!-- body=soft, lips=very soft, eyes=very stiff-->
		<!-- the order is important: included elements must appear after (lips is included in boby so it appears after)-->
		
		
		
		
		
		
		
		<Object type="EulerImplicit" />
		<Object type="CGLinearSolver" iterations="10" />
		<Object type="MechanicalObject" />
		
		<Object type="UniformMass" mass="1"/>
		<Object type="HexahedronFEMForceField" youngModulus="3000" poissonRatio="0.3" method="large" updateStiffnessMatrix="false" printLog="0"/>
	
		<Node name="Visu1">
			<Object type="OglModel" name="VisualBody" fileMesh="mesh/frog_body.obj" normals="0"   color="0.17 0.70 0.05" />
			<Object type="BarycentricMapping" object1="../.." object2="VisualBody" />
		</Node>
		<Node name="Visu2">
			<Object type="OglModel" name="VisualEyes" fileMesh="mesh/frog_eyes.obj" normals="0"   color="0.04 0.19 0.52" />
			<Object type="BarycentricMapping" object1="../.." object2="VisualEyes" />
		</Node>
		<Node name="Visu3">
			<Object type="OglModel" name="VisualEyebrows" fileMesh="mesh/frog_eyebrows.obj" normals="0"   color="0.44 0.43 0.00" />
			<Object type="BarycentricMapping" object1="../.." object2="VisualEyebrows" />
		</Node>
		<Node name="Visu4">
			<Object type="OglModel" name="VisualLips" fileMesh="mesh/frog_lips.obj" normals="0"   color="0.47 0.25 0.03" />
			<Object type="BarycentricMapping" object1="../.." object2="VisualLips" />
		</Node>
		<Node name="Surf">
			<Object type="MeshLoader" name="meshLoader" filename="mesh/frog-push25.obj"/>
			<Object type="Mesh" />
			<Object type="MechanicalObject"   />
			<Object type="Triangle" />
			<Object type="Line" />
			<Object type="Point" />
			<Object type="BarycentricMapping" />
		</Node>
		
	</Node>
	
	
</Node>