Visualization Library

A lightweight C++ OpenGL middleware for 2D/3D graphics
[Home] [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 2011.09.1160 Reference Documentation
Copyright 2005-2011 Michele Bosi. All rights reserved.
Updated on Thu May 2 2013 13:41:25.
Permission is granted to use this page to write and publish articles regarding Visualization Library.