#include <shape.h>
Public Member Functions | |
Point | Sample (float u1, float u2, Normal *Ns) const |
ShapeSet (const vector< Reference< Shape > > &s, const Transform &o2w, bool ro) | |
BBox | ObjectBound () const |
bool | CanIntersect () const |
bool | Intersect (const Ray &ray, float *t_hitp, DifferentialGeometry *dg) const |
void | Refine (vector< Reference< Shape > > &refined) const |
float | Area () const |
Private Attributes | |
float | area |
vector< float > | areaCDF |
vector< Reference< Shape > > | shapes |
Definition at line 112 of file shape.h.
BBox ShapeSet::ObjectBound | ( | ) | const [inline, virtual] |
bool ShapeSet::CanIntersect | ( | ) | const [inline, virtual] |
bool ShapeSet::Intersect | ( | const Ray & | ray, | |
float * | t_hitp, | |||
DifferentialGeometry * | dg | |||
) | const [inline, virtual] |
Reimplemented from Shape.
Definition at line 157 of file shape.h.
References CanIntersect(), and shapes.
float ShapeSet::Area | ( | ) | const [inline, virtual] |
float ShapeSet::area [private] |
vector<float> ShapeSet::areaCDF [private] |
vector<Reference<Shape> > ShapeSet::shapes [private] |
Definition at line 170 of file shape.h.
Referenced by CanIntersect(), Intersect(), ObjectBound(), Refine(), Sample(), and ShapeSet().