Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python3/src/stlib3/communication/UDP_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def createScene(rootNode):
rootNode.addObject('RequiredPlugin', name='SofaPython3')

rootNode.addObject('FreeMotionMasterSolver')
rootNode.addObject('ProjectedGaussSeidelConstraintSolver',maxIterations=1000 ,tolerance=0.001)
rootNode.addObject('BlockGaussSeidelConstraintSolver',maxIterations=1000 ,tolerance=0.001)
rootNode.addObject(UDP)

Beam = rootNode.addChild('Beam')
Expand Down
4 changes: 2 additions & 2 deletions python3/src/stlib3/scene/contactheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def ContactHeader(applyTo, alarmDistance, contactDistance, frictionCoef=0.0):
if applyTo.hasObject("FreeMotionAnimationLoop") is False:
applyTo.addObject('FreeMotionAnimationLoop')

if applyTo.hasObject("ProjectedGaussSeidelConstraintSolver") is False:
applyTo.addObject('ProjectedGaussSeidelConstraintSolver', tolerance=1e-6, maxIterations=1000)
if applyTo.hasObject("BlockGaussSeidelConstraintSolver") is False:
applyTo.addObject('BlockGaussSeidelConstraintSolver', tolerance=1e-6, maxIterations=1000)

return applyTo

Expand Down
2 changes: 1 addition & 1 deletion python3/src/stlib3/scene/mainheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def MainHeader(node, gravity=[0.0, -9.8, 0.0], dt=0.01, plugins=[], repositoryPa
RequiredPlugin,
OglSceneFrame,
FreeMotionAnimationLoop,
ProjectedGaussSeidelConstraintSolver,
BlockGaussSeidelConstraintSolver,
DiscreteIntersection
}

Expand Down
Loading