diff --git a/examples/python3/tutorial/formation/chiba/Actuator.py b/examples/python3/tutorial/formation/chiba/Actuator.py index 31889447..b1a52af5 100644 --- a/examples/python3/tutorial/formation/chiba/Actuator.py +++ b/examples/python3/tutorial/formation/chiba/Actuator.py @@ -2,8 +2,6 @@ from fingerController import FingerController #for keyboard controlling #from timerreset import FingerController #Uncomment to perform timed measurements(increases of 5kPa every 2 seconds) from loopstest_function_param3 import looptest #algorithm for generating the fiber loops -import gmsh - def createScene(rootNode): @@ -83,7 +81,7 @@ def createScene(rootNode): fiber.addObject('MeshTopology', name='lines', lines=[[i, i + 1] for i in range(loopnum)]) #fiber.addObject("FixedConstraint", name="FixedConstragetLinkPathint", indices=[0]) - fiber.addObject("StiffSpringForceField", template="Vec3d", name="springs", showArrowSize=0.5, drawMode=1, + fiber.addObject("SpringForceField", template="Vec3d", name="springs", showArrowSize=0.5, drawMode=1, stiffness=Ks, damping=Kd, indices1=indices1, indices2=indices2, lengths=lengths) # Mapping diff --git a/examples/python3/tutorial/formation/chiba/actuator_v1.py b/examples/python3/tutorial/formation/chiba/actuator_v1.py index 981c0ee2..22ddca89 100644 --- a/examples/python3/tutorial/formation/chiba/actuator_v1.py +++ b/examples/python3/tutorial/formation/chiba/actuator_v1.py @@ -1,7 +1,6 @@ import Sofa from fingerController import FingerController # for keyboard controlling from loopstest_function_param3 import looptest # algorithm for generating the fiber loops -import gmsh from useful.header import addHeader, addSolverNode @@ -73,7 +72,7 @@ def createScene(root_node): showObject=True, showObjectScale=1) hitching.addObject('MeshTopology', name='lines', lines=[[i, i + 1] for i in range(num_loops - 1)]) - hitching.addObject("StiffSpringForceField", template="Vec3d", name="springs", showArrowSize=0.5, drawMode=1, + hitching.addObject("SpringForceField", template="Vec3d", name="springs", showArrowSize=0.5, drawMode=1, stiffness=Ks, damping=Kd, indices1=[0, 1, 2, 3, 4, 5, 6], indices2=[1, 2, 3, 4, 5, 6, 7], lengths=loop_distance) hitching.addObject('BarycentricMapping', name='mapping')