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

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

#include <vertex_plane_error_function.h>

Inheritance diagram for momentum::VertexPlaneDataT< T >:

Public Member Functions

 VertexPlaneDataT ()=default
 VertexPlaneDataT (size_t vIndex, const Eigen::Vector3< T > &n, const Eigen::Vector3< T > &p, bool abv, float w, const std::string &nm="")
Public Member Functions inherited from momentum::VertexConstraintData
 VertexConstraintData ()=default
 VertexConstraintData (size_t vIndex, float w, const std::string &n="")

Public Attributes

Eigen::Vector3< T > normal = Eigen::Vector3<T>::UnitY()
 Plane normal (must be normalized).
Eigen::Vector3< T > point = Eigen::Vector3<T>::Zero()
 A point on the plane.
bool above = false
 If true, constrain vertex to be above the plane (half-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::VertexPlaneDataT< T >

Constraint data for a vertex plane target.

Constrains a mesh vertex to lie on or above a plane.

Definition at line 18 of file vertex_plane_error_function.h.

Constructor & Destructor Documentation

◆ VertexPlaneDataT() [1/2]

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

◆ VertexPlaneDataT() [2/2]

template<typename T>
momentum::VertexPlaneDataT< T >::VertexPlaneDataT ( size_t vIndex,
const Eigen::Vector3< T > & n,
const Eigen::Vector3< T > & p,
bool abv,
float w,
const std::string & nm = "" )
inline

Member Data Documentation

◆ above

template<typename T>
bool momentum::VertexPlaneDataT< T >::above = false

If true, constrain vertex to be above the plane (half-space).

Definition at line 26 of file vertex_plane_error_function.h.

Referenced by VertexPlaneDataT().

◆ normal

template<typename T>
Eigen::Vector3<T> momentum::VertexPlaneDataT< T >::normal = Eigen::Vector3<T>::UnitY()

Plane normal (must be normalized).

Definition at line 20 of file vertex_plane_error_function.h.

Referenced by VertexPlaneDataT().

◆ point

template<typename T>
Eigen::Vector3<T> momentum::VertexPlaneDataT< T >::point = Eigen::Vector3<T>::Zero()

A point on the plane.

Definition at line 23 of file vertex_plane_error_function.h.

Referenced by VertexPlaneDataT().


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