Maria GDK 5.0.0.953
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::VectorDeduplicator< VectorType > Class Template Reference

#include <StkVectorDeduplicator.h>

Public Member Functions

 VectorDeduplicator (double quantizationStep=1e-6)
 
size_t getIndex (const VectorType &v)
 
const std::vector< VectorType > & vertices () const
 

Detailed Description

template<typename VectorType>
class STK::VectorDeduplicator< VectorType >

VectorDeduplicator - Use this to make indexed vertex arrays by ensuring only unique vertex coordinates. Works for both STK::Vector2 and Vector3 of all types.

Member Function Documentation

◆ getIndex()

template<typename VectorType >
size_t STK::VectorDeduplicator< VectorType >::getIndex ( const VectorType &  v)
inline

Get index of a vertex. Use this method while building up the vertex array. If the vertex is new, a new index will be returned, if not the index of the existing vertex will be returned.

◆ vertices()

template<typename VectorType >
const std::vector< VectorType > & STK::VectorDeduplicator< VectorType >::vertices ( ) const
inline

Get all indexed vertices.


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