Visualization Library v1.0.3A lightweight C++ OpenGL middleware for 2D/3D graphics |
[Download] [Tutorials] [All Classes] [Grouped Classes] |
The TriangleStripGenerator class is used to substitute lists of triangles or quads with triangle strips. More...
#include <TriangleStripGenerator.hpp>
Static Public Member Functions | |
static void | stripfy (Geometry *geom, int cache_size=22, bool merge_strips=true, bool remove_doubles=true, bool substitute_quads=true) |
The TriangleStripGenerator class is used to substitute lists of triangles or quads with triangle strips.
Definition at line 44 of file TriangleStripGenerator.hpp.
void TriangleStripGenerator::stripfy | ( | Geometry * | geom, |
int | cache_size = 22 , |
||
bool | merge_strips = true , |
||
bool | remove_doubles = true , |
||
bool | substitute_quads = true |
||
) | [static] |
Definition at line 73 of file TriangleStripGenerator.cpp.
References vl::Collection< T >::at(), vl::Geometry::drawCalls(), vl::Collection< T >::erase(), vl::ref< T >::get(), vl::Geometry::mergeTriangleStrips(), vl::PT_TRIANGLE_STRIP, vl::PT_TRIANGLES, vl::Collection< T >::push_back(), vl::DoubleVertexRemover::removeDoubles(), and vl::Collection< T >::size().
Referenced by vl::GeometryLoadCallback::operator()().