Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::DoubleVertexRemover Class Reference

Removes from a Geometry the vertices with the same attributes. More...

#include <DoubleVertexRemover.hpp>

Inheritance diagram for vl::DoubleVertexRemover:
vl::VertexMapper vl::Object

List of all members.

Public Member Functions

 DoubleVertexRemover ()
void removeDoubles (Geometry *geom)
const std::vector< u32 > & mapNewToOld () const
const std::vector< u32 > & mapOldToNew () const

Protected Attributes

std::vector< u32mMapNewToOld
std::vector< u32mMapOldToNew

Detailed Description

Removes from a Geometry the vertices with the same attributes.

As a result also all the DrawArrays prensent in the Geometry are substituted with DrawElements.

Definition at line 63 of file DoubleVertexRemover.hpp.


Constructor & Destructor Documentation

vl::DoubleVertexRemover::DoubleVertexRemover (  ) [inline]

Definition at line 68 of file DoubleVertexRemover.hpp.


Member Function Documentation

void DoubleVertexRemover::removeDoubles ( Geometry geom )
const std::vector<u32>& vl::DoubleVertexRemover::mapNewToOld (  ) const [inline]

Definition at line 70 of file DoubleVertexRemover.hpp.

const std::vector<u32>& vl::DoubleVertexRemover::mapOldToNew (  ) const [inline]

Definition at line 71 of file DoubleVertexRemover.hpp.

Referenced by vl::loadMD2().


Member Data Documentation

std::vector<u32> vl::DoubleVertexRemover::mMapNewToOld [protected]

Definition at line 74 of file DoubleVertexRemover.hpp.

Referenced by removeDoubles().

std::vector<u32> vl::DoubleVertexRemover::mMapOldToNew [protected]

Definition at line 75 of file DoubleVertexRemover.hpp.

Referenced by removeDoubles().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:09.
Permission is granted to use this page to write and publish articles regarding Visualization Library.