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

Constraint data for a vertex position target. More...

#include <vertex_position_error_function.h>

Inheritance diagram for momentum::VertexPositionDataT< T >:

Public Member Functions

 VertexPositionDataT ()=default
 VertexPositionDataT (size_t vIndex, const Eigen::Vector3< T > &targetPos, 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 > target = Eigen::Vector3<T>::Zero()
 Target position in world space.
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::VertexPositionDataT< T >

Constraint data for a vertex position target.

Constrains a mesh vertex to a target 3D position.

Definition at line 18 of file vertex_position_error_function.h.

Constructor & Destructor Documentation

◆ VertexPositionDataT() [1/2]

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

◆ VertexPositionDataT() [2/2]

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

Member Data Documentation

◆ target

template<typename T>
Eigen::Vector3<T> momentum::VertexPositionDataT< T >::target = Eigen::Vector3<T>::Zero()

Target position in world space.

Definition at line 20 of file vertex_position_error_function.h.

Referenced by VertexPositionDataT().


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