20 #ifndef MIRTK_InternalForceTerm_H 21 #define MIRTK_InternalForceTerm_H 23 #include "mirtk/EnergyMeasure.h" 30 enum InternalForceTerm
32 IFT_Unknown = IFT_Begin,
49 inline string ToString(
const InternalForceTerm &ift,
int w,
char c,
bool left)
52 if (em <= IFT_Begin || em >= IFT_End)
return ToString(
"Unknown", w, c, left);
58 inline bool FromString(
const char *str, InternalForceTerm &ift)
61 if (
FromString(str, em) && IFT_Begin < em && em < IFT_End) {
62 ift =
static_cast<InternalForceTerm
>(em);
73 #endif // MIRTK_InternalForceTerm_H Minimize metric distortion.
Quadratic fit of neighor to tangent plane distance.
Gauss curvature constraint.
Repels too close non-neighboring triangles.
Inflate point set surface.
Constant force in normal direction.
Minimize curvature of point set surface.
Stretching force (rest edge length)
Maximum curvature constraint.
Repels too close non-neighboring nodes.
string ToString(const EnergyMeasure &value, int w, char c, bool left)
Convert energy measure enumeration value to string.
bool FromString(const char *str, EnergyMeasure &value)
Convert energy measure string to enumeration value.
EnergyMeasure
Enumeration of all available energy terms.
Mean curvature constraint.
Unknown/invalid energy term.