Rebel Fork Framework
Urho3D::GeometryLODView Struct Reference

Level of detail of Model geometry, unpacked for easy editing. More...

#include <Urho3D/Graphics/ModelView.h>

Public Member Functions

Vector3 CalculateCenter () const
 Calculate center of vertices' bounding box.
unsigned CalculateNumMorphs () const
 Calculate number of morphs in the model.
void Normalize ()
 All equivalent views should be literally equal after normalization.
void InvalidateNormalsAndTangents ()
void RecalculateFlatNormals ()
void RecalculateSmoothNormals ()
void RecalculateTangents ()
template<class T>
void ForEachTriangle (T callback)
 Iterate all triangles in primitive. Callback is called with three vertex indices.
bool operator== (const GeometryLODView &rhs) const
bool operator!= (const GeometryLODView &rhs) const
unsigned GetNumPrimitives () const
bool IsTriangleGeometry () const
bool IsLineGeometry () const
bool IsPointGeometry () const

Public Attributes

PrimitiveType primitiveType_ {}
ea::vector< ModelVertex > vertices_
ea::vector< unsigned > indices_
float lodDistance_ {}
ModelVertexFormat vertexFormat_
ea::unordered_map< unsigned, ModelVertexMorphVector > morphs_

Detailed Description

Level of detail of Model geometry, unpacked for easy editing.

Member Function Documentation

◆ GetNumPrimitives()

unsigned Urho3D::GeometryLODView::GetNumPrimitives ( ) const

Getters


The documentation for this struct was generated from the following files:
  • Urho3D/Graphics/ModelView.h
  • Urho3D/Graphics/ModelView.cpp