shapeworks::SphereConstraint
Inherits from shapeworks::Constraint
Public Functions
Name | |
---|---|
virtual bool | isViolated(const Eigen::Vector3d & pt) const override |
virtual void | print() const override |
Eigen::Vector3d | getCenter() |
void | setCenter(Eigen::Vector3d inCenter) |
double | getRadius() |
void | setRadius(double inRadius) |
virtual Eigen::Vector3d | constraintGradient(const Eigen::Vector3d & pt) const override |
Eigen::Vector3d | constraintGradientSphere(const Eigen::Vector3d & pt, const Eigen::Vector3d & updpt) const |
virtual double | constraintEval(const Eigen::Vector3d & pt) const override |
double | constraintEvalSphere(const Eigen::Vector3d & pt, const Eigen::Vector3d & updpt) const |
Eigen::Vector3d | lagragianGradient(const Eigen::Vector3d & pt, const Eigen::Vector3d & updpt, double C) const |
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) |
Protected Functions inherited from shapeworks::Constraint
Name | |
---|---|
int | sgn(double val) |
Protected Attributes inherited from shapeworks::Constraint
Name | |
---|---|
double | mu_ |
double | z_ |
double | lambda_ |
Public Functions Documentation
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 getCenter
inline Eigen::Vector3d getCenter()
function setCenter
inline void setCenter(
Eigen::Vector3d inCenter
)
function getRadius
inline double getRadius()
function setRadius
inline void setRadius(
double inRadius
)
function constraintGradient
inline virtual Eigen::Vector3d constraintGradient(
const Eigen::Vector3d & pt
) const override
Reimplements: shapeworks::Constraint::constraintGradient
function constraintGradientSphere
Eigen::Vector3d constraintGradientSphere(
const Eigen::Vector3d & pt,
const Eigen::Vector3d & updpt
) const
function constraintEval
inline virtual double constraintEval(
const Eigen::Vector3d & pt
) const override
Reimplements: shapeworks::Constraint::constraintEval
function constraintEvalSphere
double constraintEvalSphere(
const Eigen::Vector3d & pt,
const Eigen::Vector3d & updpt
) const
function lagragianGradient
Eigen::Vector3d lagragianGradient(
const Eigen::Vector3d & pt,
const Eigen::Vector3d & updpt,
double C
) const
Updated on 2022-07-23 at 16:40:06 -0600