529 MatrixT< 3, 1 > Vector3
A 3d column vector.
Definition: Types.h:39
#define M_PI
Definition: Constraint.h:21
Circle constraint. Constrains a set of vertices to lie on the same circle. See for more details...
Definition: Constraint.h:345
MatrixT< 2, 2 > Matrix22
A 2 by 2 matrix.
Definition: Types.h:37
Base class of any constraints. This class defines the interface of a ShapeOp constraint.
Definition: Constraint.h:30
A mesh-independent tetrahedron strain-limiting constraint. See for more details. ...
Definition: Constraint.h:148
Angle range constraint. Constrains the angle between the two lines formed by three points to a range...
Definition: Constraint.h:486
Sphere constraint. Constrains a set of vertices to lie on a sphere. See for more details...
Definition: Constraint.h:365
A mesh-independent triangle strain-limiting constraint. See for more details.
Definition: Constraint.h:118
MatrixT< Eigen::Dynamic, 1 > VectorX
A nd column vector.
Definition: Types.h:47
std::vector< int > idI_
ids of the vertices involved in this constraint.
Definition: Constraint.h:77
Similarity or Rigid constraint. Perserves the relative location of a set of vertices. See for more details.
Definition: Constraint.h:385
Area constraint. Limits the area of a triangle to a range. See for more details. ...
Definition: Constraint.h:179
void setRangeMin(Scalar rMin)
Set a new range minimum.
Definition: Constraint.h:108
MatrixT< 3, Eigen::Dynamic > Matrix3X
A 3 by n matrix.
Definition: Types.h:45
void setRangeMax(Scalar rMax)
Set a new range maximum.
Definition: Constraint.h:171
std::size_t nIndices() const
Number of indices of vertices involved in the constraint.
Definition: Constraint.h:74
Plane constraint. Constrains a set of vertices to lie on the same plane. See for more details...
Definition: Constraint.h:325
void setRangeMin(Scalar rMin)
Set a new range minimum.
Definition: Constraint.h:270
void setRangeMax(Scalar rMax)
Set a new range maximum.
Definition: Constraint.h:272
void setRangeMin(Scalar rMin)
Set a new range minimum.
Definition: Constraint.h:138
void setRangeMax(Scalar rMax)
Set a new range maximum.
Definition: Constraint.h:202
int idO_
location of this constraint in the linear system.
Definition: Constraint.h:81
Closeness constraint. Constrains a vertex to a position in space. Projects onto a given rest position...
Definition: Constraint.h:281
Namespace of the ShapeOp library.
Definition: Constraint.cpp:18
Bending constraint. Limits the bending between two neighboring triangles. See for more details...
Definition: Constraint.h:241
void setRangeMax(Scalar rMax)
Set a new range maximum.
Definition: Constraint.h:140
void setRangeMin(Scalar rMin)
Set a new range minimum.
Definition: Constraint.h:200
ParallelogramConstraint constraint. Constrains the four vertices of a quad to be a parallelogram...
Definition: Constraint.h:444
Eigen::Matrix< Scalar, Rows, Cols, Options > MatrixT
A typedef of the dense matrix of Eigen.
Definition: Types.h:35
ShapeOpScalar Scalar
A scalar type, double or float, as defined in ShapeOpScalar in Common.h.
Definition: Types.h:32
MatrixT< 3, 3 > Matrix33
A 3 by 3 matrix.
Definition: Types.h:41
#define SHAPEOP_API
Defines the API prefix for the current platform.
Definition: Common.h:34
void setRangeMax(Scalar rMax)
Set a new range maximum.
Definition: Constraint.h:110
void setRangeMax(Scalar rMax)
Set a new range maximum.
Definition: Constraint.h:233
Line constraint. Constrains a set of vertices to lie on the same line. See for more details...
Definition: Constraint.h:305
Scalar weight_
weight for the constraint.
Definition: Constraint.h:79
Volume constraint. Limits the volume of a tetrahedron to a range. See for more details.
Definition: Constraint.h:210
Edge strain constraint. Constrains the distance between two points to a range. See for more details...
Definition: Constraint.h:85
void setRangeMin(Scalar rMin)
Set a new range minimum.
Definition: Constraint.h:169
Rectangle constraint. Constrains the four vertices of a quad to be a rectangle. See for more details...
Definition: Constraint.h:426
void setRangeMin(Scalar rMin)
Set a new range minimum.
Definition: Constraint.h:231