File: PlaneForceField.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 (38 lines) | stat: -rw-r--r-- 1,514 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
<Node name="root"  dt="0.01" showBehaviorModels="1" showCollisionModels="0" showMappings="0" showForceFields="1">
	
	<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" />


	<Node name="M1">	  
 	        <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" />
		<Object type="UniformMass" totalmass="10"/>
		<Object type="RegularGrid"
			nx="2" ny="2" nz="2"
			xmin="-3.5" xmax="3.5"
			ymin="-3.5" ymax="3.5"
			zmin="-3.5" zmax="3.5"
			/>
		
		<Object type="RegularGridSpringForceField" name="Springs" stiffness="1000"  />
		
		<Object type="PlaneForceField" normal="0 1 0" d="-10" stiffness="100000"/>
		
		<Node name="Visu">
			<Object type="OglModel" name="Visual" fileMesh="mesh/smCube125.obj" color="blue" />
			<Object type="BarycentricMapping" object1="../.." object2="Visual" />
		</Node>

		<Node name="Collis">        		
		        <Object type="MeshLoader" name="meshLoader"  filename="mesh/smCube125.obj"/>
			<Object type="Mesh" />
			<Object type="MechanicalObject" />
			<Object type="Triangle" />
			<Object type="BarycentricMapping" object1="../.." object2="Collis" />
		</Node>			
	</Node>
</Node>