lux::WaldTriangleMesh Class Reference

#include <waldtrianglemesh.h>

Inheritance diagram for lux::WaldTriangleMesh:

lux::Shape

List of all members.

Public Member Functions

 WaldTriangleMesh (const Transform &o2w, bool ro, int ntris, int nverts, const int *vptr, const Point *P, const Normal *N, const Vector *S, const float *uv)
 ~WaldTriangleMesh ()
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)

Protected Attributes

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

Friends

class WaldTriangle
class VertexTexture


Detailed Description

Definition at line 32 of file waldtrianglemesh.h.


Constructor & Destructor Documentation

WaldTriangleMesh::WaldTriangleMesh ( const Transform o2w,
bool  ro,
int  ntris,
int  nverts,
const int *  vptr,
const Point P,
const Normal N,
const Vector S,
const float *  uv 
)

Definition at line 31 of file waldtrianglemesh.cpp.

References memcpy(), n, ntris, nverts, lux::Shape::ObjectToWorld, p, s, uvs, and vertexIndex.

Referenced by CreateShape().

WaldTriangleMesh::~WaldTriangleMesh (  ) 

Definition at line 65 of file waldtrianglemesh.cpp.

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


Member Function Documentation

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

Reimplemented from lux::Shape.

Definition at line 42 of file waldtrianglemesh.h.

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

BBox WaldTriangleMesh::ObjectBound (  )  const [virtual]

Implements lux::Shape.

Definition at line 73 of file waldtrianglemesh.cpp.

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

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

Reimplemented from lux::Shape.

Definition at line 88 of file waldtrianglemesh.cpp.

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

BBox WaldTriangleMesh::WorldBound (  )  const [virtual]

Reimplemented from lux::Shape.

Definition at line 80 of file waldtrianglemesh.cpp.

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


Friends And Related Function Documentation

friend class VertexTexture [friend]

Definition at line 45 of file waldtrianglemesh.h.

friend class WaldTriangle [friend]

Definition at line 44 of file waldtrianglemesh.h.

Referenced by Refine().


Member Data Documentation

Definition at line 51 of file waldtrianglemesh.h.

Referenced by Refine(), and WaldTriangleMesh().

Definition at line 51 of file waldtrianglemesh.h.

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

vector<boost::shared_ptr<Shape> > lux::WaldTriangleMesh::triPtrs [protected]

Definition at line 57 of file waldtrianglemesh.h.

float* lux::WaldTriangleMesh::uvs [protected]


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

Generated on Sat Aug 15 14:17:07 2009 for lux by  doxygen 1.5.9