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

#include <polygon_data.h>

Public Member Functions

 PolygonData ()
std::string errorMessage (size_t numVertices) const
std::string warnMessage (size_t numTexVertices) const
size_t numPolygons () const

Public Attributes

std::vector< uint32_t > indices
std::vector< uint32_t > offsets
std::vector< uint32_t > textureIndices

Detailed Description

Definition at line 23 of file polygon_data.h.

Constructor & Destructor Documentation

◆ PolygonData()

momentum::PolygonData::PolygonData ( )
inline

Definition at line 42 of file polygon_data.h.

References offsets.

Member Function Documentation

◆ errorMessage()

std::string momentum::PolygonData::errorMessage ( size_t numVertices) const
nodiscard

Definition at line 49 of file polygon_data.cpp.

References indices, numPolygons(), offsets, and textureIndices.

◆ numPolygons()

size_t momentum::PolygonData::numPolygons ( ) const
nodiscard

Definition at line 44 of file polygon_data.cpp.

References MT_CHECK, and offsets.

Referenced by errorMessage().

◆ warnMessage()

std::string momentum::PolygonData::warnMessage ( size_t numTexVertices) const
nodiscard

Definition at line 95 of file polygon_data.cpp.

References momentum::kInvalidTexCoord, and textureIndices.

Member Data Documentation

◆ indices

std::vector<uint32_t> momentum::PolygonData::indices

Definition at line 33 of file polygon_data.h.

Referenced by errorMessage().

◆ offsets

std::vector<uint32_t> momentum::PolygonData::offsets

Definition at line 34 of file polygon_data.h.

Referenced by errorMessage(), numPolygons(), and PolygonData().

◆ textureIndices

std::vector<uint32_t> momentum::PolygonData::textureIndices

Definition at line 40 of file polygon_data.h.

Referenced by errorMessage(), and warnMessage().


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