Skip to content

Commit

Permalink
Fix cosseratObject.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alxbilger committed Nov 21, 2024
1 parent b102dd9 commit 7ef625e
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions examples/python3/cosserat/cosseratObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,7 @@ def createScene(rootNode):
rootNode.addObject(
"RequiredPlugin",
name="plugins",
pluginName=[
pluginList,
["SofaEngine", "SofaLoader", "SofaSimpleFem", "SofaExporter"],
],
pluginName=pluginList,
)
rootNode.addObject(
"VisualStyle",
Expand All @@ -376,13 +373,11 @@ def createScene(rootNode):
)
solverNode.addObject("GenericConstraintCorrection")

cosserat = solverNode.addChild(
Cosserat(
parent=solverNode,
cosseratGeometry=cosserat_config,
name="cosserat",
radius=0.15,
)
cosserat = Cosserat(
parent=solverNode,
cosseratGeometry=cosserat_config,
name="cosserat",
radius=0.15,
)

# use this to add the collision if the beam will interact with another object
Expand Down

0 comments on commit 7ef625e

Please sign in to comment.