API Documentation
Loading...
Searching...
No Matches
TriangleIterator< t_dims, t_type > Class Template Reference

A class to easily iterate each triangle over a Geometry of triangles or meshes. More...

#include <Geometry.h>

Collaboration diagram for TriangleIterator< t_dims, t_type >:
[legend]

Public Member Functions

Triangle< t_dims, t_type > operator[] (uint04 index) const
 
uint04 size () const
 
 TriangleIterator (PrimitiveProperty primitive_property, const String &vertex_property, Geometry mesh)
 
 TriangleIterator (PrimitiveProperty primitive_property, VertexProperty vertex_property, Geometry mesh)
 
Vector< 3, uint04vertexIndex (uint04 index) const
 

Protected Member Functions

Vector< 3, uint04rawIndex (uint04 index) const
 

Protected Attributes

uint04 m_primitive_count
 
Geometry::OptimizedPrimitiveDef m_primitive_def
 
const TableColumnm_vertex_column
 
const uint04 m_vertex_offset
 

Detailed Description

template<uint01 t_dims, class t_type>
class NDEVR::TriangleIterator< t_dims, t_type >

A class to easily iterate each triangle over a Geometry of triangles or meshes.


Constructor & Destructor Documentation

◆ TriangleIterator() [1/2]

template<uint01 t_dims, class t_type >
TriangleIterator ( PrimitiveProperty primitive_property,
VertexProperty vertex_property,
Geometry mesh )
inline

◆ TriangleIterator() [2/2]

template<uint01 t_dims, class t_type >
TriangleIterator ( PrimitiveProperty primitive_property,
const String & vertex_property,
Geometry mesh )
inline

Member Function Documentation

◆ operator[]()

template<uint01 t_dims, class t_type >
Triangle< t_dims, t_type > operator[] ( uint04 index) const
inline

◆ rawIndex()

template<uint01 t_dims, class t_type >
Vector< 3, uint04 > rawIndex ( uint04 index) const
inlineprotected

◆ size()

template<uint01 t_dims, class t_type >
uint04 size ( ) const
inline

◆ vertexIndex()

template<uint01 t_dims, class t_type >
Vector< 3, uint04 > vertexIndex ( uint04 index) const
inline

Member Data Documentation

◆ m_primitive_count

template<uint01 t_dims, class t_type >
uint04 m_primitive_count
protected

◆ m_primitive_def

template<uint01 t_dims, class t_type >
Geometry::OptimizedPrimitiveDef m_primitive_def
protected

◆ m_vertex_column

template<uint01 t_dims, class t_type >
const TableColumn& m_vertex_column
protected

◆ m_vertex_offset

template<uint01 t_dims, class t_type >
const uint04 m_vertex_offset
protected

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