Go to the documentation of this file.
23 bool intersect(
const Ray& r,
float t0,
float t1,
double& distance)
const;
bool contains(const Vector3 &p) const
Determines whether a point p lies within the shape.
void enclose(const Box &box, const Pose3D &pose)
Box getBoundingBox() const
Returns the smallest box which includes all mesh points. Box is not rotated, but matches the axis of ...
Vector3 getCenter() const
Determine the center of the box with respect to the origin of the box.
bool intersect(const Ray &r, float t0, float t1, double &distance) const
intersect: currently always throws a logic error
Vector3 getSize() const
get the size of the box along all axes
const Vector3 & getMin() const
get vertex of the box with minimum coordinates
void setMesh(const Mesh &mesh)
set the Mesh Any child classes should throw a std::logic_error in case the mesh should not be changed...
double getMaxRadius() const
Calculate the maximum distance from the origin of the shape to any point of the shape.
Box(const Vector3 &min, const Vector3 &max)
void generate_mesh_()
Should be called any time bounds is changed.
const Vector3 & getMax() const
get vertex of the box with maximum coordinates
A geometric description of a shape.