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

Range structure for efficiently storing vertex indices per bone. More...

#include <sdf_collision_error_function.h>

Public Member Functions

size_t size () const
 Returns the number of vertices for this bone.
bool empty () const
 Returns true if this bone has no vertices.

Public Attributes

size_t start
 Start index in activeVertexIndices_.
size_t end
 End index in activeVertexIndices_ (exclusive).

Detailed Description

Range structure for efficiently storing vertex indices per bone.

Provides [start, end) indices into the activeVertexIndices_ array.

Definition at line 38 of file sdf_collision_error_function.h.

Member Function Documentation

◆ empty()

bool momentum::BoneVertexRange::empty ( ) const
inlinenodiscard

Returns true if this bone has no vertices.

Definition at line 48 of file sdf_collision_error_function.h.

References end, and start.

◆ size()

size_t momentum::BoneVertexRange::size ( ) const
inlinenodiscard

Returns the number of vertices for this bone.

Definition at line 43 of file sdf_collision_error_function.h.

References end, and start.

Member Data Documentation

◆ end

size_t momentum::BoneVertexRange::end

End index in activeVertexIndices_ (exclusive).

Definition at line 40 of file sdf_collision_error_function.h.

Referenced by empty(), and size().

◆ start

size_t momentum::BoneVertexRange::start

Start index in activeVertexIndices_.

Definition at line 39 of file sdf_collision_error_function.h.

Referenced by empty(), and size().


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