Skip to content

Commit c7c7c63

Browse files
authored
[scene] Sync scenes with changes to GenericConstraintSolver in SOFA (#103)
* [scene] Sync scenes with changes to GenericConstraintSolver in SOFA * [scene] Disable Geomagic in scene * [scene] Remove leftover experimental stuff
1 parent 4864971 commit c7c7c63

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

scenes/NeedleInsertion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def createScene(root):
6060
root.addObject("ConstraintAttachButtonSetting")
6161
root.addObject("VisualStyle", displayFlags="showVisualModels hideBehaviorModels showCollisionModels hideMappings hideForceFields showWireframe showInteractionForceFields" )
6262
root.addObject("FreeMotionAnimationLoop")
63-
root.addObject("GenericConstraintSolver", tolerance=1e-5, maxIt=5000)
63+
root.addObject("ProjectedGaussSeidelConstraintSolver", tolerance=1e-5, maxIt=5000)
6464
root.addObject("CollisionLoop")
6565

6666
needleBaseMaster = root.addChild("NeedleBaseMaster")

scenes/NeedleInsertionCycles.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def createScene(root):
6060
root.addObject("ConstraintAttachButtonSetting")
6161
root.addObject("VisualStyle", displayFlags="showVisualModels hideBehaviorModels showCollisionModels hideMappings hideForceFields showWireframe showInteractionForceFields" )
6262
root.addObject("FreeMotionAnimationLoop")
63-
root.addObject("GenericConstraintSolver", tolerance=0.00001, maxIt=5000, printLog=False, computeConstraintForces=True)
63+
root.addObject("ProjectedGaussSeidelConstraintSolver", tolerance=0.00001, maxIt=5000, printLog=False, computeConstraintForces=True)
6464
root.addObject("CollisionLoop")
6565

6666
needleBaseMaster = root.addChild("NeedleBaseMaster")

scenes/NeedleInsertionHaptics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def createScene(root):
6565
root.addObject("ConstraintAttachButtonSetting")
6666
root.addObject("VisualStyle", displayFlags="showVisualModels hideBehaviorModels showCollisionModels hideMappings hideForceFields showWireframe showInteractionForceFields" )
6767
root.addObject("FreeMotionAnimationLoop")
68-
root.addObject("GenericConstraintSolver", tolerance=0.00001, maxIt=5000, regularizationTerm=0.001)
68+
root.addObject("ProjectedGaussSeidelConstraintSolver", tolerance=0.00001, maxIt=5000)#, regularizationTerm=0.001)
6969
root.addObject("CollisionLoop")
7070

7171
toolController = root.addChild("ToolController")
@@ -157,11 +157,11 @@ def createScene(root):
157157
FFCollision = FF.addChild("Collision")
158158
FFCollision.addObject("EdgeSetTopologyContainer", name="Container", src="@../../Needle/bodyCollision/Container_body")
159159
FFCollision.addObject("MechanicalObject", name="mstate_coli", constraint="@../../Needle/bodyCollision/mstate_body.constraint")
160-
FFCollision.addObject("RigidMapping")
160+
FFCollision.addObject("RigidMapping", globalToLocalCoords=True)
161161
FFTip = FF.addChild("Tip")
162162
FFTip.addObject("PointSetTopologyContainer", name="Container", src="@../../Needle/tipCollision/Container_tip")
163163
FFTip.addObject("MechanicalObject", name="mstate_coli", constraint="@../../Needle/tipCollision/mstate_tip.constraint")
164-
FFTip.addObject("RigidMapping")
164+
FFTip.addObject("RigidMapping", globalToLocalCoords=True)
165165

166166
volume = root.addChild("Volume")
167167
volume.addObject("EulerImplicitSolver")

0 commit comments

Comments
 (0)