File: MechanicalStateControllerTranslation.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 (34 lines) | stat: -rw-r--r-- 1,427 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
<Node name="root" dt="0.005" gravity="0 -10 0" showBehaviorModels="0" showCollisionModels="1" showMappings="0" showForceFields="1" >
	
	<Object type="CollisionPipeline" depth="6" verbose="0" draw="0"/>
	<Object type="BruteForceDetection" name="N2" />
	<Object type="LocalMinDistance" name="Proximity" alarmDistance="1.0" contactDistance="0.5"/>
	<Object type="CollisionResponse" name="Response" response="default" />
	<Object type="CollisionGroup" name="Group" />
	
	<Node name="InstrumentEdgeSet">
		<Object type="EulerImplicit" rayleighStiffness="0" printLog="false" />
		<Object iterations="100" threshold="0.00000001" type="CGLinearSolver"/>
		
		
			<Object template="Rigid" type="MechanicalObject"/> 
			<Object type="UniformMass" mass="0"/>
			<Node name="Visu"> 
				<Object color="0.500 0.500 0.500" fileMesh="mesh/sphere.obj" name="Visual" type="OglModel" scale="50"/> 
				<Object object1="../.." object2="Visual" type="RigidMapping"/>
			</Node> 
			<Node name="Surf2"> 
				<Object type="MeshLoader" name="meshLoader" filename="mesh/sphere.obj" />
				<Object type="Mesh" />
				<Object type="MechanicalObject" scale="50"/>
				<Object type="Triangle"/> 
				<Object type="Line"/> 
				<Object type="Point"/> 
				<Object type="RigidMapping"/> 
			</Node> 

		
		<Object type="MechanicalStateController" template="Rigid" onlyTranslation="true" listening="true" handleEventTriggersUpdate="true"/>

	</Node>
</Node>