Momentum
A library for solving nonlinear optimization problems related to human body kinematics
Loading...
Searching...
No Matches
momentum::VertexConstraintData Struct Reference

Base structure for vertex constraint data. More...

#include <vertex_error_function.h>

Inheritance diagram for momentum::VertexConstraintData:

Public Member Functions

 VertexConstraintData ()=default
 VertexConstraintData (size_t vIndex, float w, const std::string &n="")

Public Attributes

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

Base structure for vertex constraint data.

Derived constraint types extend this with their specific target data.

Definition at line 28 of file vertex_error_function.h.

Constructor & Destructor Documentation

◆ VertexConstraintData() [1/2]

◆ VertexConstraintData() [2/2]

momentum::VertexConstraintData::VertexConstraintData ( size_t vIndex,
float w,
const std::string & n = "" )
inline

Definition at line 39 of file vertex_error_function.h.

References name, vertexIndex, and weight.

Member Data Documentation

◆ name

std::string momentum::VertexConstraintData::name

Name of the constraint (for debugging).

Definition at line 36 of file vertex_error_function.h.

Referenced by VertexConstraintData().

◆ vertexIndex

size_t momentum::VertexConstraintData::vertexIndex = kInvalidIndex

Vertex index in the mesh.

Definition at line 30 of file vertex_error_function.h.

Referenced by VertexConstraintData().

◆ weight

float momentum::VertexConstraintData::weight = 0.0f

Weight of the constraint.

Definition at line 33 of file vertex_error_function.h.

Referenced by VertexConstraintData().


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