|
Momentum
A library for solving nonlinear optimization problems related to human body kinematics
|
Constraint data for a vertex normal constraint. More...
#include <vertex_normal_error_function.h>
Public Member Functions | |
| VertexNormalDataT ()=default | |
| VertexNormalDataT (size_t vIndex, const Eigen::Vector3< T > &targetPos, const Eigen::Vector3< T > &targetNorm, float w, const std::string &n="") | |
| Public Member Functions inherited from momentum::VertexConstraintData | |
| VertexConstraintData ()=default | |
| VertexConstraintData (size_t vIndex, float w, const std::string &n="") | |
Public Attributes | |
| Eigen::Vector3< T > | targetPosition = Eigen::Vector3<T>::Zero() |
| Target position in world space. | |
| Eigen::Vector3< T > | targetNormal = Eigen::Vector3<T>::Zero() |
| Target normal direction (will be flipped if facing away from source normal). | |
| Public Attributes inherited from momentum::VertexConstraintData | |
| size_t | vertexIndex = kInvalidIndex |
| Vertex index in the mesh. | |
| float | weight = 0.0f |
| Weight of the constraint. | |
| std::string | name |
| Name of the constraint (for debugging). | |
Constraint data for a vertex normal constraint.
Constrains a mesh vertex using a point-to-plane distance where the plane normal can be the source (mesh) normal, the target normal, or a mix of both.
Definition at line 19 of file vertex_normal_error_function.h.
|
default |
|
inline |
Definition at line 27 of file vertex_normal_error_function.h.
References targetNormal, targetPosition, and momentum::VertexConstraintData::VertexConstraintData().
| Eigen::Vector3<T> momentum::VertexNormalDataT< T >::targetNormal = Eigen::Vector3<T>::Zero() |
Target normal direction (will be flipped if facing away from source normal).
Definition at line 24 of file vertex_normal_error_function.h.
Referenced by VertexNormalDataT().
| Eigen::Vector3<T> momentum::VertexNormalDataT< T >::targetPosition = Eigen::Vector3<T>::Zero() |
Target position in world space.
Definition at line 21 of file vertex_normal_error_function.h.
Referenced by VertexNormalDataT().