File: HexaCenterPointMapping.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 (39 lines) | stat: -rw-r--r-- 1,743 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
<Node name="root" dt="0.05" showBehaviorModels="1" showCollisionModels="1" showMappings="0" showForceFields="0" showBoundingTree="0" gravity="0 0 0">
	<Object type="CollisionPipeline" verbose="0" />
	<Object type="BruteForceDetection" name="N2" />
	<Object type="CollisionResponse" response="default" />
	<Object type="NewProximityIntersection" name="Proximity" alarmDistance="0.8" contactDistance="0.5" />
	<Object type="CollisionGroup" />

	<Node name="H">
		<Object type="CGImplicit" iterations="40" tolerance="1e-6" threshold="1e-10"/>
		<Object type="MeshLoader" name="meshLoader" filename="mesh/nine_hexa.msh"/>
		<Object type="MechanicalObject" name="Hexa" />
		<include href="Objects/HexahedronSetTopology.xml" />

		<Object type="HexahedralFEMForceField" name="FEM" youngModulus="1000" poissonRatio="0.3" method="large" />
		<Object type="DiagonalMass" massDensity="0.5" />
		<Object type="FixedConstraint" indices="12 15 28 31" />     
		<Object type="Gravity" gravity="0 -9.81 0"/>	
		
		<Node name="Q">
			<include href="Objects/QuadSetTopology.xml" />
			<Object type="Hexa2QuadTopologicalMapping" object1="../../Container" object2="Container"/>	

			<Node name="Visu">
				<Object type="OglModel" name="Visual" color="blue" />
				<Object type="IdentityMapping" object1="../../../Hexa" object2="Visual" />
			</Node>
		</Node>	
		
		<Node name="P">
			<include href="Objects/PointSetTopology.xml" />
			<Object type="CenterPointTopologicalMapping" object1="../../Container" object2="Container"/>	
			<Object type="MechanicalObject" name="Point" />
			<Object type="CenterPointMechanicalMapping" object1="../../Hexa" object2="Point"/>	
			<Object type="Sphere" name="CollisionModel" radius="0.7" />
		</Node>	
	</Node>	
</Node>