File: Gravity.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 (97 lines) | stat: -rw-r--r-- 4,207 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<Node name="root"  dt="0.03333" showBehaviorModels="0" showCollisionModels="0" showMappings="0" showForceFields="0">
	<Object type="CollisionPipeline" verbose="0" depth="10" draw="0"/>
	<Object type="BruteForceDetection" name="N2" />
	<Object type="MinProximityIntersection" name="Proximity" alarmDistance="0.75" contactDistance="0.5" />
	<Object type="CollisionResponse" name="Response" response="default" />
	<Object type="CollisionGroup" name="Group" />
	<Node name="Torus">
	        <Object type="Gravity" gravity="0 -10 0" />
		<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" dx="0" dy="20" dz="0" ry="90"/>
		<Object type="UniformMass" totalmass="10"/>
		<Object type="RegularGrid"
			nx="6" ny="5" nz="2"
			xmin="-7.5" xmax="7.5"
			ymin="-6" ymax="6"
			zmin="-1.75" zmax="1.75"
			/>
		<Object type="RegularGridSpringForceField" name="Springs" stiffness="350" damping="1" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" fileMesh="mesh/torus2_scale3.obj"  dx="0" dy="20" dz="0" color="blue" />
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>
		<Node name="Surf">
        		<Object type="MeshLoader" name="meshLoader" filename="mesh/torus2_scale3.obj"/>
			<Object type="Mesh" />
			<Object type="MechanicalObject" dx="0" dy="20" dz="0" />
			<Object type="Triangle" />
			<Object type="Line" />
			<Object type="Point" />
			<Object type="BarycentricMapping" />
		</Node>
	</Node>

	<Node name="Torus">
	        <Object type="Gravity" gravity="0 10 0" />
		<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" dx="0" dy="-20" dz="0"/>
		<Object type="UniformMass" totalmass="10"/>
		<Object type="RegularGrid"
			nx="6" ny="5" nz="2"
			xmin="-7.5" xmax="7.5"
			ymin="-6" ymax="6"
			zmin="-1.75" zmax="1.75"
			/>
		<Object type="RegularGridSpringForceField" name="Springs" stiffness="350" damping="1" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" fileMesh="mesh/torus2_scale3.obj"  dx="0" dy="-20" dz="0" color="blue" />
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>
		<Node name="Surf">
        		<Object type="MeshLoader" name="meshLoader" filename="mesh/torus2_scale3.obj"/>
			<Object type="Mesh" />
			<Object type="MechanicalObject" dx="0" dy="-20" dz="0" />
			<Object type="Triangle" />
			<Object type="Line" />
			<Object type="Point" />
			<Object type="BarycentricMapping" />
		</Node>
	</Node>




	<Node name="Floor">
                <Object type="MeshLoader" name="meshLoader" filename="mesh/floor2b.obj"/>
		<Object type="Mesh" />
		<Object type="MechanicalObject" dy="30.25" scale="0.7" rx="180" />
		<Object type="Triangle" name="Floor" simulated="0" moving="0" />
		<Object type="Line" name="Floor" simulated="0" moving="0" />
		<Object type="Point" name="Floor" simulated="0" moving="0" />
		<Object type="OglModel" name="FloorV" fileMesh="mesh/floor2b.obj" scale="0.5" texturename="textures/floor.png" rx="180" dy="30"
			material="Default 
				  Diffuse 1      0.75 0.75 0.75 0.4 
				  Ambient 1      0.2 0.2 0.2 0.4 
				  Specular 0     1 1 1 1 
				  Emissive 0     0 0 0 0 
				  Shininess 0    45"  />
	</Node>

	<Node name="Floor">
                <Object type="MeshLoader" name="meshLoader" filename="mesh/floor2b.obj"/>
		<Object type="Mesh" />
		<Object type="MechanicalObject" dy="-30.25" scale="0.7" />
		<Object type="Triangle" name="Floor" simulated="0" moving="0" />
		<Object type="Line" name="Floor" simulated="0" moving="0" />
		<Object type="Point" name="Floor" simulated="0" moving="0" />
		<Object type="OglModel" name="FloorV" fileMesh="mesh/floor2b.obj" scale="0.5" texturename="textures/floor.png"  dy="-30"
			material="Default 
				  Diffuse 1      0.75 0.75 0.75 0.4 
				  Ambient 1      0.2 0.2 0.2 0.4 
				  Specular 0     1 1 1 1 
				  Emissive 0     0 0 0 0 
				  Shininess 0    45"  /> />
	</Node>
</Node>