GClasses
GClasses::GTriMeshBuilder Class Reference

#include <GRayTrace.h>

Public Member Functions

 GTriMeshBuilder (GRayTraceMaterial *pMaterial)
 
 ~GTriMeshBuilder ()
 
void add (const G3DVector &a, const G3DVector &b, const G3DVector &c)
 Add a triangle to the mesh. More...
 
GRayTraceTriMeshmesh ()
 Return the mesh (and clear the internal queues) More...
 

Protected Member Functions

size_t addPoint (const G3DVector &v)
 Adds a point to the internal set if it is not already there. Returns its index. More...
 

Protected Attributes

std::vector< size_t > m_indexes
 
G3DReal m_lineWidth
 
GRayTraceMaterialm_pMaterial
 
std::vector< G3DVectorm_points
 

Constructor & Destructor Documentation

GClasses::GTriMeshBuilder::GTriMeshBuilder ( GRayTraceMaterial pMaterial)
GClasses::GTriMeshBuilder::~GTriMeshBuilder ( )

Member Function Documentation

void GClasses::GTriMeshBuilder::add ( const G3DVector a,
const G3DVector b,
const G3DVector c 
)

Add a triangle to the mesh.

size_t GClasses::GTriMeshBuilder::addPoint ( const G3DVector v)
protected

Adds a point to the internal set if it is not already there. Returns its index.

GRayTraceTriMesh* GClasses::GTriMeshBuilder::mesh ( )

Return the mesh (and clear the internal queues)

Member Data Documentation

std::vector<size_t> GClasses::GTriMeshBuilder::m_indexes
protected
G3DReal GClasses::GTriMeshBuilder::m_lineWidth
protected
GRayTraceMaterial* GClasses::GTriMeshBuilder::m_pMaterial
protected
std::vector<G3DVector> GClasses::GTriMeshBuilder::m_points
protected