Skip to content

Commit

Permalink
Merge pull request #142 from alxbilger/gmsh
Browse files Browse the repository at this point in the history
Remove unused import of gmsh
  • Loading branch information
adagolodjo authored Dec 3, 2024
2 parents ad8b012 + cf5ac13 commit 5a6fd97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions examples/python3/tutorial/formation/chiba/Actuator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions examples/python3/tutorial/formation/chiba/actuator_v1.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 5a6fd97

Please sign in to comment.