![]() |
Maria GDK 5.0.0.953
Documentation of native code in develop branch
|
#include <StkVectorDeduplicator.h>
Public Member Functions | |
| VectorDeduplicator (double quantizationStep=1e-6) | |
| size_t | getIndex (const VectorType &v) |
| const std::vector< VectorType > & | vertices () const |
VectorDeduplicator - Use this to make indexed vertex arrays by ensuring only unique vertex coordinates. Works for both STK::Vector2 and Vector3 of all types.
|
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.
|
inline |
Get all indexed vertices.