Skip to content

Commit dfc4f0b

Browse files
committed
[Needle][scene] Increased stiffness of the gel volume to allow for the needle to bend
1 parent 1572558 commit dfc4f0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scenes/NeedleInsertion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"max":[0.125, 0.125, -0.100]
1818
} #Again all in mm
1919
g_gelMechanicalParameters = {
20-
"youngModulus":8000,
20+
"youngModulus":8e5,
2121
"poissonRatio":0.45,
2222
"method":"large"
2323
}
@@ -182,7 +182,7 @@ def createScene(root):
182182
destGeom="@Volume/collision/geom_tri",
183183
fromVol="@Needle/bodyCollision/geom_body",
184184
destVol="@Volume/geom_tetra",
185-
punctureThreshold=0.05,
185+
punctureThreshold=2.,
186186
slideDistance=0.003,
187187
drawcollision=True,
188188
sphereRadius=0.0001
@@ -193,4 +193,4 @@ def createScene(root):
193193
root.addObject("ConstraintUnilateral",input="@InsertionAlgo.output",directions="@punctureDirection",draw_scale="0.001")#, mu="0.001")
194194

195195
root.addObject("FirstDirection",name="bindDirection", handler="@Needle/bodyCollision/NeedleBeams")
196-
root.addObject("ConstraintInsertion",input="@InsertionAlgo.outputList", directions="@bindDirection",draw_scale="0.002", frictionCoeff=0.0)
196+
root.addObject("ConstraintInsertion",input="@InsertionAlgo.outputList", directions="@bindDirection",draw_scale="0.002", frictionCoeff=0.05)

0 commit comments

Comments
 (0)