#include <heightfield.h>
Public Member Functions | |
Heightfield (const Transform *o2, const Transform *w2o, bool ro, int nu, int nv, const float *zs) | |
~Heightfield () | |
bool | CanIntersect () const |
void | Refine (vector< Reference< Shape > > &refined) const |
BBox | ObjectBound () const |
Private Attributes | |
float * | z |
int | nx |
int | ny |
Definition at line 35 of file heightfield.h.
Heightfield::Heightfield | ( | const Transform * | o2, | |
const Transform * | w2o, | |||
bool | ro, | |||
int | nu, | |||
int | nv, | |||
const float * | zs | |||
) |
Definition at line 32 of file heightfield.cpp.
Heightfield::~Heightfield | ( | ) |
Definition at line 42 of file heightfield.cpp.
References z.
bool Heightfield::CanIntersect | ( | ) | const [virtual] |
Reimplemented from Shape.
Definition at line 57 of file heightfield.cpp.
BBox Heightfield::ObjectBound | ( | ) | const [virtual] |
Reimplemented from Shape.
Definition at line 62 of file heightfield.cpp.
References ParamSet::AddFloat(), ParamSet::AddInt(), ParamSet::AddPoint(), CreateTriangleMeshShape(), nx, ny, Shape::ObjectToWorld, P, Shape::ReverseOrientation, VERT, Shape::WorldToObject, Point::x, Point::y, z, and Point::z.
int Heightfield::nx [private] |
Definition at line 46 of file heightfield.h.
Referenced by Heightfield(), ObjectBound(), and Refine().
int Heightfield::ny [private] |
Definition at line 46 of file heightfield.h.
Referenced by Heightfield(), ObjectBound(), and Refine().
float* Heightfield::z [private] |
Definition at line 45 of file heightfield.h.
Referenced by Heightfield(), ObjectBound(), Refine(), and ~Heightfield().