26 static const std::string getStaticTypeName() {
return "LinearProjectionConstraint"; }
27 const std::string getTypeName()
const {
return "LinearProjectionConstraint"; }
32 void setProjection(
const size_t& nodeId,
const Vec3d& p,
const Vec3d& q = Vec3d::Zero());
53 inline void setValue(
const Vec3d& v) { m_value = v; }
63 inline const Vec3d&
getValue()
const {
return m_value; }
68 inline const size_t&
getNodeId()
const {
return m_nodeId; }
73 inline bool isFixed()
const {
return m_isFixedConstraint; }
77 bool m_isFixedConstraint;
const size_t & getNodeId() const
Get the node id.
const Mat3d & getProjector() const
Get the projector.
const Vec3d & getValue() const
Get the value.
void setProjectionToLine(const size_t &nodeId, const Vec3d &p)
Form the projection.
void setProjectorToDirichlet(const size_t &nodeId)
Set the projector to simulate Dirichlet conditions.
void setValue(const Vec3d &v)
Set the value in the restricted subspace.
void setProjection(const size_t &nodeId, const Vec3d &p, const Vec3d &q=Vec3d::Zero())
Form the projection.
void reset()
Reset the linear projector.
Linear projection constraint.
bool isFixed() const
Returns true if the constraint is fixed.