#include <BaseLMConstraint.h>
Intern storage of the constraints. a ConstraintGroup is a list of equations that will be solved together. They are defined by a ConstOrder(position, velocity or acceleration)
More...
Intern storage of the constraints. a ConstraintGroup is a list of equations that will be solved together. They are defined by a ConstOrder(position, velocity or acceleration)
- See also
- ConstraintEquation
-
ConstOrder
bool sofa::core::behavior::ConstraintGroup::active |
|
protected |
VecEquations sofa::core::behavior::ConstraintGroup::equations |
|
protected |
Order of the constraint
- See also
- ConstOrder
void sofa::core::behavior::ConstraintGroup::addConstraint |
( |
unsigned int & |
constraintId, |
|
|
unsigned int |
idx, |
|
|
SReal |
c |
|
) |
| |
Method to add an interaction constraint to the group
- Parameters
-
idx | index of the equation |
c | correction we need to apply in order to solve the constraint |
Retrieve all the equations.
const ConstraintEquation& sofa::core::behavior::ConstraintGroup::getConstraint |
( |
const unsigned int |
i | ) |
const |
|
inline |
Random Access to an equation.
std::size_t sofa::core::behavior::ConstraintGroup::getNumConstraint |
( |
| ) |
const |
|
inline |
Return the number of constraint contained in this group.
Return the order of the constraint
- See also
- ConstOrder
bool sofa::core::behavior::ConstraintGroup::isActive |
( |
| ) |
const |
|
inline |
void sofa::core::behavior::ConstraintGroup::setActive |
( |
bool |
b | ) |
|
|
inline |