ShapeOp
 All Classes Files Functions Variables Typedefs Macros Pages
Public Member Functions | Protected Attributes | List of all members
ShapeOp::Constraint Class Referenceabstract

Base class of any constraints. This class defines the interface of a ShapeOp constraint. More...

#include <Constraint.h>

Inheritance diagram for ShapeOp::Constraint:
ShapeOp::AreaConstraint ShapeOp::BendingConstraint ShapeOp::CircleConstraint ShapeOp::ClosenessConstraint ShapeOp::EdgeStrainConstraint ShapeOp::LineConstraint ShapeOp::PlaneConstraint ShapeOp::SphereConstraint ShapeOp::TetrahedronStrainConstraint ShapeOp::TriangleStrainConstraint ShapeOp::UniformLaplacianConstraint ShapeOp::VolumeConstraint

Public Member Functions

 Constraint (const std::vector< int > &idI, Scalar weight)
 Constraint constructor.
 
virtual void project (const Matrix3X &positions, Matrix3X &projections) const =0
 Find the closest configuration from the input positions that satisfy the constraint.
 
virtual void addConstraint (std::vector< Triplet > &triplets, int &idO) const =0
 Add the constraint to the linear system.
 
Scalar error (const Matrix3X &positions) const
 Compute the constraint violation for the given input positions.
 

Protected Attributes

std::vector< int > idI_
 ids of the vertices involved in this constraint.
 
Scalar weight_
 weight for the constraint.
 
int idO_
 location of this constraint in the linear system.
 

Detailed Description

Base class of any constraints. This class defines the interface of a ShapeOp constraint.


The documentation for this class was generated from the following files: