Skip to content

shapeworks::FreeFormConstraint

FreeFormConstraint. More...

#include <FreeFormConstraint.h>

Inherits from shapeworks::Constraint

Public Functions

Name
FreeFormConstraint()
void setMesh(std::shared_ptr< shapeworks::Mesh > mesh)
std::shared_ptr< shapeworks::Mesh > getMesh()
bool readyForOptimize() const
virtual bool isViolated(const Eigen::Vector3d & pt) const override
virtual void print() const override
virtual Eigen::Vector3d constraintGradient(const Eigen::Vector3d & pt) const override
virtual double constraintEval(const Eigen::Vector3d & pt) const override
void setDefinition(vtkSmartPointer< vtkPolyData > polyData)
Set polydata where per-vertex free form constraint definition exists.
vtkSmartPointer< vtkPolyData > getDefinition()
Get polydata where per-vertex free form constraint definition exists.
void applyToPolyData(vtkSmartPointer< vtkPolyData > polyData)
Apply the free form constraint to a polydata.
std::vector< std::vector< Eigen::Vector3d > > & boundaries()
Access the set of boundaries.
Eigen::Vector3d getQueryPoint()
Get query (inside) point.
void setQueryPoint(Eigen::Vector3d queryPoint)
Set query (inside) point.
void computeBoundaries()
Compute boundaries from definition polydata with ffc_paint scalars.
bool isSet()
Return if this FFC is set or not.
void setPainted(bool painted)
Set if this FFC has paint on it or not.
void reset()
Reset to initial state.

Additional inherited members

Public Functions inherited from shapeworks::Constraint

Name
void setZ(double inz)
double getZ()
void setMu(double inmu)
double getMu()
void setLambda(double inLambda)
double getLambda()
void updateZ(const Eigen::Vector3d & pt, double C)
void updateMu(const Eigen::Vector3d & pt, double C)
Eigen::Vector3d lagragianGradient(const Eigen::Vector3d & pt, double C) const

Protected Functions inherited from shapeworks::Constraint

Name
int sgn(double val)

Protected Attributes inherited from shapeworks::Constraint

Name
double mu_
double z_
double lambda_

Detailed Description

class shapeworks::FreeFormConstraint;

FreeFormConstraint.

Encapsulate functionality related to free form constraints

Public Functions Documentation

function FreeFormConstraint

inline FreeFormConstraint()

function setMesh

inline void setMesh(
    std::shared_ptr< shapeworks::Mesh > mesh
)

function getMesh

inline std::shared_ptr< shapeworks::Mesh > getMesh()

function readyForOptimize

bool readyForOptimize() const

function isViolated

virtual bool isViolated(
    const Eigen::Vector3d & pt
) const override

Reimplements: shapeworks::Constraint::isViolated

function print

inline virtual void print() const override

Reimplements: shapeworks::Constraint::print

function constraintGradient

inline virtual Eigen::Vector3d constraintGradient(
    const Eigen::Vector3d & pt
) const override

Reimplements: shapeworks::Constraint::constraintGradient

function constraintEval

inline virtual double constraintEval(
    const Eigen::Vector3d & pt
) const override

Reimplements: shapeworks::Constraint::constraintEval

function setDefinition

void setDefinition(
    vtkSmartPointer< vtkPolyData > polyData
)

Set polydata where per-vertex free form constraint definition exists.

function getDefinition

inline vtkSmartPointer< vtkPolyData > getDefinition()

Get polydata where per-vertex free form constraint definition exists.

function applyToPolyData

void applyToPolyData(
    vtkSmartPointer< vtkPolyData > polyData
)

Apply the free form constraint to a polydata.

function boundaries

std::vector< std::vector< Eigen::Vector3d > > & boundaries()

Access the set of boundaries.

function getQueryPoint

inline Eigen::Vector3d getQueryPoint()

Get query (inside) point.

function setQueryPoint

inline void setQueryPoint(
    Eigen::Vector3d queryPoint
)

Set query (inside) point.

function computeBoundaries

void computeBoundaries()

Compute boundaries from definition polydata with ffc_paint scalars.

function isSet

bool isSet()

Return if this FFC is set or not.

function setPainted

void setPainted(
    bool painted
)

Set if this FFC has paint on it or not.

function reset

void reset()

Reset to initial state.


Updated on 2022-07-23 at 17:50:03 -0600