Go to the documentation of this file.    1 #ifndef GEOLIB_OCTREE_H_ 
    2 #define GEOLIB_OCTREE_H_ 
   18     Octree(
double size, 
double resolution = 0.1);
 
   36     bool intersect(
const Ray& r, 
float t0, 
float t1, 
double& distance) 
const;
 
 
Octree(double size, double resolution=0.1)
double setResolution(double resolution)
void add(const Vector3 &p)
const Mesh & getMesh() const
return the mesh defining the shape
double getResolution() const
void raytrace(const Ray &r, float t0, float t1)
void getCubes(std::vector< Box > &cubes) const
bool intersect(const Ray &r, float t0, float t1, double &distance) const
intersect: currently always throws a logic error
bool contains(const Vector3 &p) const
Determines whether a point p lies within the shape.
virtual Octree * clone() const
double getMaxRadius() const
Calculate the maximum distance from the origin of the shape to any point of the shape.
A geometric description of a shape.