Skip to content

Commit 3a53a02

Browse files
committed
[scene] Added attachment constraint between the layers
1 parent 8f24324 commit 3a53a02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scenes/NeedleInsertionLayers.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ def createScene(root):
200200
color=g_wireColor[i],name="volume_visu",template="Vec3d")
201201
volumeVisuWire.addObject("IdentityMapping")
202202

203-
#root.addObject("NearestPointROI", template="Vec3d", name="attachROI", radius=0.0025,
204-
# object1="@Layer0/mstate_gel", object2="@Layer1/mstate_gel")
205-
#root.addObject("BilateralLagrangianConstraint", name="layerAttachment",
206-
# first_point="@attachROI.indices1", second_point="@attachROI.indices2",
207-
# object1="@Layer0/mstate_gel", object2="@Layer1/mstate_gel")
203+
root.addObject("NearestPointROI", template="Vec3d", name="attachROI", radius=0.0025,
204+
object1="@Layer0/mstate_gel", object2="@Layer1/mstate_gel")
205+
root.addObject("BilateralLagrangianConstraint", name="layerAttachment",
206+
first_point="@attachROI.indices1", second_point="@attachROI.indices2",
207+
object1="@Layer0/mstate_gel", object2="@Layer1/mstate_gel")
208208

209209

210210
for i in range(0,2):

0 commit comments

Comments
 (0)