File: RegularGridTopology.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 (53 lines) | stat: -rw-r--r-- 2,056 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
<Node name="root"  dt="0.02" showBehaviorModels="1" showMappings="0" showForceFields="1">
	<Object type="CollisionPipeline" verbose="0" />
	<Object type="BruteForceDetection" name="N2" />
	<Object type="CollisionResponse" response="default" />
	
	<Node name="LiverFFD-lowres">
		<Object type="EulerImplicit" />                
		<Object type="CGLinearSolver" />
		<Object type="MechanicalObject" />
		<Object type="UniformMass" totalmass="100.0" />
		<Object type="RegularGrid"
				nx="4" ny="3" nz="3"
				xmin="-10.25" xmax="-3.25"
				ymin="0.25" ymax="5.25"
				zmin="-2" zmax="3"
			/>
		<Object name="GConstraint" type="BoxConstraint" box="-8.5 0 -2.5 -5 3 2" />
		<Object type="RegularGridSpringForceField" name="Springs" stiffness="400" damping="4" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" fileMesh="mesh/liver-smooth.obj" color="red" dx="-5"/>
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>
		<Node name="Collision Surface">
			<Object type="Sphere" name="Surf" filename="mesh/liver.sph"/>
			<MechanicalObject dx="-5"/>
			<Object type="BarycentricMapping" />
		</Node>
	</Node>
	
	<Node name="LiverFFD-hires">
		<Object type="EulerImplicit" />                
		<Object type="CGLinearSolver" />
		<Object type="MechanicalObject" />
		<Object type="UniformMass" totalmass="100.0" />
		<Object type="RegularGrid"
				nx="8" ny="6" nz="6"
				xmin="-0.25" xmax="7.25"
				ymin="0.25" ymax="5.25"
				zmin="-2" zmax="3"
			/>
		<Object name="GConstraint" type="BoxConstraint" box="2.5 0 -2.5 5 3 2" />
		<Object type="RegularGridSpringForceField" name="Springs" stiffness="100" damping="4" />
		<Node name="Visu">
			<Object type="OglModel" name="Visual" fileMesh="mesh/liver-smooth.obj" color="red" dx="5"/>
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>
		<Node name="Collision Surface">
			<Object type="Sphere" name="Surf" filename="mesh/liver.sph" />
			<MechanicalObject dx="5"/>
			<Object type="BarycentricMapping" />
		</Node>
	</Node>
</Node>