Skip to content

Commit 2f44767

Browse files
[examples] cleaning references to GenericConstraintSolver (comments) (#341)
1 parent d97d4ba commit 2f44767

27 files changed

Lines changed: 28 additions & 28 deletions

File tree

examples/component/constraint/CableConstraint/DisplacementVsForceControl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def createScene(rootNode):
1717
"Sofa.Component.Collision.Response.Contact", # Needed to use components RuleBasedContactManager
1818
"Sofa.Component.Constraint.Lagrangian.Correction",
1919
# Needed to use components LinearSolverConstraintCorrection
20-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
20+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
2121
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
2222
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
2323
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

examples/component/constraint/CableConstraint/Finger.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def createScene(rootNode):
1111
rootNode.addObject('RequiredPlugin', pluginName=[
1212
"Sofa.Component.AnimationLoop", # Needed to use components FreeMotionAnimationLoop
1313
"Sofa.Component.Constraint.Lagrangian.Correction", # Needed to use components GenericConstraintCorrection
14-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
14+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
1515
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
1616
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
1717
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver
@@ -34,7 +34,7 @@ def createScene(rootNode):
3434
# when manipulating the robots by specifying their effector's position instead of by direct control
3535
#  of the actuator's parameters.
3636
# rootNode.addObject('QPInverseProblemSolver', printLog=False)
37-
# Otherwise use a GenericConstraintSolver
37+
# Otherwise use a ProjectedGaussSeidelConstraintSolver
3838
rootNode.addObject('ProjectedGaussSeidelConstraintSolver', tolerance=1e-5, maxIterations=100)
3939

4040
rootNode.gravity = [0, -9810, 0]

examples/component/constraint/CableConstraint/FingerWithSTLIB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def createScene(rootNode):
1919
"Sofa.Component.AnimationLoop", # Needed to use components FreeMotionAnimationLoop
2020
"Sofa.Component.Constraint.Lagrangian.Correction",
2121
# Needed to use components LinearSolverConstraintCorrection
22-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
22+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
2323
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
2424
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
2525
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

examples/component/constraint/JointConstraint/JointConstraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def createScene(rootNode):
1010
rootNode.addObject('RequiredPlugin', name='ArticulatedSystemPlugin') # Needed to use components [ArticulatedHierarchyContainer,ArticulatedSystemMapping,Articulation,ArticulationCenter]
1111
rootNode.addObject('RequiredPlugin', name='Sofa.Component.AnimationLoop') # Needed to use components [FreeMotionAnimationLoop]
1212
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Lagrangian.Correction') # Needed to use components [UncoupledConstraintCorrection]
13-
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Lagrangian.Solver') # Needed to use components [GenericConstraintSolver]
13+
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Lagrangian.Solver') # Needed to use components [ProjectedGaussSeidelConstraintSolver]
1414
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Projective') # Needed to use components [FixedProjectiveConstraint]
1515
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Engine.Generate') # Needed to use components [GenerateRigidMass]
1616
rootNode.addObject('RequiredPlugin', name='Sofa.Component.IO.Mesh') # Needed to use components [MeshSTLLoader]

examples/component/constraint/SurfacePressureConstraint/PressureVsVolumeGrowthControl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def createScene(rootNode):
1313
"Sofa.Component.AnimationLoop", # Needed to use components FreeMotionAnimationLoop
1414
"Sofa.Component.Constraint.Lagrangian.Correction",
1515
# Needed to use components LinearSolverConstraintCorrection
16-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
16+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
1717
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
1818
"Sofa.Component.IO.Mesh", # Needed to use components MeshOBJLoader, MeshVTKLoader
1919
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

examples/component/constraint/SurfacePressureConstraint/Springy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def createScene(rootNode):
1414
"Sofa.Component.AnimationLoop", # Needed to use components FreeMotionAnimationLoop
1515
"Sofa.Component.Constraint.Lagrangian.Correction",
1616
# Needed to use components LinearSolverConstraintCorrection
17-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
17+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
1818
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
1919
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
2020
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

examples/component/constraint/SurfacePressureConstraint/SurfacePressureConstraint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def createScene(rootNode):
88

99
rootNode.addObject('RequiredPlugin', name='Sofa.Component.AnimationLoop') # Needed to use components [FreeMotionAnimationLoop]
1010
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Lagrangian.Correction') # Needed to use components [LinearSolverConstraintCorrection]
11-
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Lagrangian.Solver') # Needed to use components [GenericConstraintSolver]
11+
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Constraint.Lagrangian.Solver') # Needed to use components [ProjectedGaussSeidelConstraintSolver]
1212
rootNode.addObject('RequiredPlugin', name='Sofa.Component.Engine.Select') # Needed to use components [BoxROI]
1313
rootNode.addObject('RequiredPlugin', name='Sofa.Component.IO.Mesh') # Needed to use components [MeshOBJLoader,MeshVTKLoader]
1414
rootNode.addObject('RequiredPlugin', name='Sofa.Component.LinearSolver.Direct') # Needed to use components [EigenSimplicialLDLT]

examples/component/constraint/UnilateralPlaneConstraint/ArticulatedTentacle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def createScene(rootNode):
1818
"Sofa.Component.Collision.Response.Contact", # Needed to use components CollisionResponse
1919
"Sofa.Component.Constraint.Lagrangian.Correction",
2020
# Needed to use components LinearSolverConstraintCorrection
21-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
21+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
2222
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
2323
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
2424
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

examples/component/controller/CommunicationController/SimulationDirect_Receiver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def createScene(rootNode):
99
"Sofa.Component.AnimationLoop", # Needed to use components FreeMotionAnimationLoop
1010
"Sofa.Component.Constraint.Lagrangian.Correction",
1111
# Needed to use components LinearSolverConstraintCorrection
12-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
12+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
1313
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
1414
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
1515
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

examples/component/controller/CommunicationController/SimulationInverse_Sender.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def createScene(rootNode):
1212
"Sofa.Component.Collision.Geometry", # Needed to use components SphereCollisionModel
1313
"Sofa.Component.Constraint.Lagrangian.Correction",
1414
# Needed to use components LinearSolverConstraintCorrection, UncoupledConstraintCorrection
15-
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components GenericConstraintSolver
15+
"Sofa.Component.Constraint.Lagrangian.Solver", # Needed to use components ProjectedGaussSeidelConstraintSolver
1616
"Sofa.Component.Engine.Select", # Needed to use components BoxROI
1717
"Sofa.Component.IO.Mesh", # Needed to use components MeshSTLLoader, MeshVTKLoader
1818
"Sofa.Component.LinearSolver.Direct", # Needed to use components SparseLDLSolver

0 commit comments

Comments
 (0)