From 85a834feaad6e97b0b1c24d4a808233b8430f1d0 Mon Sep 17 00:00:00 2001 From: Paul Baksic Date: Mon, 1 Dec 2025 11:33:41 +0100 Subject: [PATCH] Apply name changing on code and examples --- python3/src/stlib3/communication/UDP_controller.py | 2 +- python3/src/stlib3/scene/contactheader.py | 4 ++-- python3/src/stlib3/scene/mainheader.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python3/src/stlib3/communication/UDP_controller.py b/python3/src/stlib3/communication/UDP_controller.py index 8bee2c8..d6c0e20 100644 --- a/python3/src/stlib3/communication/UDP_controller.py +++ b/python3/src/stlib3/communication/UDP_controller.py @@ -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') diff --git a/python3/src/stlib3/scene/contactheader.py b/python3/src/stlib3/scene/contactheader.py index fe6b4fe..9eb9d62 100644 --- a/python3/src/stlib3/scene/contactheader.py +++ b/python3/src/stlib3/scene/contactheader.py @@ -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 diff --git a/python3/src/stlib3/scene/mainheader.py b/python3/src/stlib3/scene/mainheader.py index d638a31..a98f172 100644 --- a/python3/src/stlib3/scene/mainheader.py +++ b/python3/src/stlib3/scene/mainheader.py @@ -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 }