Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::VertexNormalDataT< T > Struct Template Reference

Constraint data for a vertex normal constraint. More...

#include <vertex_normal_error_function.h>

Inheritance diagram for momentum::VertexNormalDataT< T >:

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).

Detailed Description

template<typename T>
struct momentum::VertexNormalDataT< T >

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.

Constructor & Destructor Documentation

◆ VertexNormalDataT() [1/2]

template<typename T>
momentum::VertexNormalDataT< T >::VertexNormalDataT ( )
default

◆ VertexNormalDataT() [2/2]

template<typename T>
momentum::VertexNormalDataT< T >::VertexNormalDataT ( size_t vIndex,
const Eigen::Vector3< T > & targetPos,
const Eigen::Vector3< T > & targetNorm,
float w,
const std::string & n = "" )
inline

Member Data Documentation

◆ targetNormal

template<typename T>
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().

◆ targetPosition

template<typename T>
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().


The documentation for this struct was generated from the following file: