lux::PlyMesh Class Reference

#include <plymesh.h>

Inheritance diagram for lux::PlyMesh:

lux::Shape

List of all members.

Public Member Functions

 PlyMesh (const Transform &o2w, bool ro, string filename, bool smooth)
 ~PlyMesh ()
BBox ObjectBound () const
BBox WorldBound () const
bool CanIntersect () const
void Refine (vector< boost::shared_ptr< Shape > > &refined) const

Static Public Member Functions

static ShapeCreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet &params)

Public Attributes

int ntris
int nverts
int * vertexIndex
Pointp
Normaln
Vectors
float * uvs
vector< boost::shared_ptr
< Shape > > 
triPtrs

Friends

class Triangle
class VertexTexture


Detailed Description

Definition at line 31 of file plymesh.h.


Constructor & Destructor Documentation

lux::PlyMesh::PlyMesh ( const Transform o2w,
bool  ro,
string  filename,
bool  smooth 
)

lux::PlyMesh::~PlyMesh (  ) 

Definition at line 182 of file plymesh.cpp.

References n, p, s, uvs, and vertexIndex.


Member Function Documentation

bool lux::PlyMesh::CanIntersect (  )  const [inline, virtual]

Reimplemented from lux::Shape.

Definition at line 38 of file plymesh.h.

Shape * lux::PlyMesh::CreateShape ( const Transform o2w,
bool  reverseOrientation,
const ParamSet params 
) [static]

Definition at line 214 of file plymesh.cpp.

References lux::ParamSet::FindOneBool(), lux::ParamSet::FindOneString(), and PlyMesh().

Referenced by lux::MakeShape().

BBox lux::PlyMesh::ObjectBound (  )  const [virtual]

Implements lux::Shape.

Definition at line 189 of file plymesh.cpp.

References nverts, p, lux::Union(), and lux::Shape::WorldToObject.

void lux::PlyMesh::Refine ( vector< boost::shared_ptr< Shape > > &  refined  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 203 of file plymesh.cpp.

References ntris, lux::Shape::ObjectToWorld, and lux::Shape::reverseOrientation.

BBox lux::PlyMesh::WorldBound (  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 195 of file plymesh.cpp.

References nverts, p, and lux::Union().


Friends And Related Function Documentation

friend class Triangle [friend]

Definition at line 40 of file plymesh.h.

friend class VertexTexture [friend]

Definition at line 41 of file plymesh.h.


Member Data Documentation

Definition at line 49 of file plymesh.h.

Referenced by PlyMesh(), and ~PlyMesh().

Definition at line 46 of file plymesh.h.

Referenced by PlyMesh(), and Refine().

Definition at line 46 of file plymesh.h.

Referenced by ObjectBound(), PlyMesh(), and WorldBound().

Definition at line 48 of file plymesh.h.

Referenced by ObjectBound(), PlyMesh(), lux::VertexCB(), WorldBound(), and ~PlyMesh().

Definition at line 50 of file plymesh.h.

Referenced by PlyMesh(), and ~PlyMesh().

vector<boost::shared_ptr<Shape> > lux::PlyMesh::triPtrs

Definition at line 52 of file plymesh.h.

Definition at line 51 of file plymesh.h.

Referenced by PlyMesh(), and ~PlyMesh().

Definition at line 47 of file plymesh.h.

Referenced by lux::FaceCB(), PlyMesh(), and ~PlyMesh().


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

Generated on Mon May 18 07:16:20 2009 for lux by  doxygen 1.5.8