#include <plymesh.h>

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 Shape * | CreateShape (const Transform &o2w, bool reverseOrientation, const ParamSet ¶ms) |
Public Attributes | |
| int | ntris |
| int | nverts |
| int * | vertexIndex |
| Point * | p |
| Normal * | n |
| Vector * | s |
| float * | uvs |
| vector< boost::shared_ptr < Shape > > | triPtrs |
Friends | |
| class | Triangle |
| class | VertexTexture |
Definition at line 31 of file plymesh.h.
| lux::PlyMesh::PlyMesh | ( | const Transform & | o2w, | |
| bool | ro, | |||
| string | filename, | |||
| bool | smooth | |||
| ) |
Definition at line 78 of file plymesh.cpp.
References lux::FaceCB(), LUX_BUG, LUX_ERROR, luxError, n, ntris, nverts, lux::Shape::ObjectToWorld, p, ply_close(), ply_open(), ply_read(), ply_read_header(), ply_set_read_cb(), s, uvs, lux::VertexCB(), vertexIndex, lux::Point::x, lux::Point::y, and lux::Point::z.
Referenced by CreateShape().
| lux::PlyMesh::~PlyMesh | ( | ) |
| bool lux::PlyMesh::CanIntersect | ( | ) | const [inline, virtual] |
| 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().
Definition at line 48 of file plymesh.h.
Referenced by ObjectBound(), PlyMesh(), lux::VertexCB(), WorldBound(), and ~PlyMesh().
| vector<boost::shared_ptr<Shape> > lux::PlyMesh::triPtrs |
| float* lux::PlyMesh::uvs |
1.5.9