-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmultithread-debug.scn
88 lines (73 loc) · 4.06 KB
/
multithread-debug.scn
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
<?xml version="1.0"?>
<Node name="root" gravity="0 -50 0" dt="0.001">
<RequiredPlugin pluginName="MultiThreading" />
<AnimationLoopParallelScheduler name="mainLoop" threadNumber="1" />
<VisualStyle displayFlags="hideBehaviorModels hideVisualModels showCollisionModels showInteractionForcefields" />
<FreeMotionAnimationLoop solveVelocityConstraintFirst="0"/>
<LCPConstraintSolver maxIt="1000" tolerance="1e-6" mu="0.9"/>
<DefaultPipeline depth="5" verbose="0" draw="0" />
<BruteForceDetection name="N2" />
<MinProximityIntersection alarmDistance="0.03" contactDistance="0.02" />
<DiscreteIntersection/>
<DefaultContactManager name="Response" response="FrictionContact"/>
<Node name="FloorScene">
<!-- <VisualStyle displayFlags="showBehaviorModels" />
<FreeMotionAnimationLoop solveVelocityConstraintFirst="0"/>
<LCPConstraintSolver maxIt="1000" tolerance="1e-6" mu="0.9"/>
<DefaultPipeline depth="5" verbose="0" draw="0" />
<BruteForceDetection name="N2" />
<MinProximityIntersection alarmDistance="0.03" contactDistance="0.02" />
<DiscreteIntersection/>
<DefaultContactManager name="Response" response="FrictionContact"/> -->
<Node name="Floor">
<EulerImplicit rayleighStiffness="0.1" printLog="false" rayleighMass="0.1" />
<CGLinearSolver threshold="1e-8" tolerance="1e-5" iterations="25"/>
<MeshObjLoader name="loader" filename="mesh/floorFlat.obj"/>
<MeshTopology src="@loader"/>
<MechanicalObject name="mecha" src="@loader" template="Rigid3d" scale3d="10 1 10" translation="50 0 50" showObject="1"/>
<UniformMass totalMass="10000.0"/>
<UncoupledConstraintCorrection/>
<OglModel name="visual" src="@loader" color="blue" scale3d="10 1 10" translation="50 0 50"/>
<FixedConstraint indices='0 1 2 3'/>
<Node name="Coll_Rec">
<MeshTopology src="@../loader"/>
<MechanicalObject src="@../loader" name="coll" scale3d="10 1 10" translation="50 0 50"/>
<TTriangleModel/>
<TLineModel/>
<TPointModel/>
<RigidMapping input="@.." output="@coll"/>
</Node>
</Node>
</Node>
<Node name="CylinderScene">
<!-- <VisualStyle displayFlags="showBehaviorModels" />
<FreeMotionAnimationLoop solveVelocityConstraintFirst="0"/>
<LCPConstraintSolver maxIt="1000" tolerance="1e-6" mu="0.9"/>
<DefaultPipeline depth="5" verbose="0" draw="0" />
<BruteForceDetection name="N2" />
<MinProximityIntersection alarmDistance="0.03" contactDistance="0.02" />
<DiscreteIntersection/>
<DefaultContactManager name="Response" response="FrictionContact"/> -->
<Node name="Cylinder">
<EulerImplicit rayleighStiffness="0.1" printLog="false" rayleighMass="0.1" />
<CGLinearSolver threshold="1e-8" tolerance="1e-5" iterations="25"/>
<MeshObjLoader name="loader_cyl" filename="mesh/cylinder.obj"/>
<MechanicalObject name="Cyl" src="@loader_cyl" template="Rigid3d" scale3d="0.8 0.8 0.8" translation="-30 100 -65"/>
<UniformMass totalMass="10000.0"/>
<UncoupledConstraintCorrection/>
<Node name="Visu_Cyl">
<OglModel name="visual_cyl" src="@../loader_cyl" color="green" scale3d="0.8 0.8 0.8"/>
<RigidMapping input="@.." output="@visual_cyl"/>
</Node>
<Node name="Coll_Cyl">
<MeshTopology src="@../loader_cyl"/>
<MechanicalObject src="@../loader_cyl" name="coll_cyl" scale3d="0.8 0.8 0.8"/>
<TTriangleModel/>
<TLineModel/>
<TPointModel/>
<RigidMapping input="@.." output="@coll_cyl"/>
</Node>
</Node>
</Node>
<DataExchange name="exchangeData1" template="vector<float>" from="@FloorScene/Floor/mecha.position" to="@CylinderScene/Cylinder/Cyl.position"/>
</Node>