GEL
2
GEL is a library for Geometry and Linear Algebra
|
Leaf node of a bounding box tree. References triangle. More...
#include <BoundingLNode.h>
Inherits Geometry::BoundingNode< BoxType >.
Public Member Functions | |
BoundingLNode (const Triangle &_tri) | |
bool | intersect (const CGLA::Vec3f &, const CGLA::Vec3f &, float &) const |
Find the surface intersection point. | |
void | intersect (Ray &r) const |
int | intersect_cnt (const CGLA::Vec3f &, const CGLA::Vec3f &) const |
Count number of intersections from a point in a given direction. | |
void | sq_distance (const CGLA::Vec3f &, float &, float &, float &) const |
virtual bool | is_leaf () const |
const Triangle & | get_tri () const |
Leaf node of a bounding box tree. References triangle.
void Geometry::BoundingLNode< BoxType >::sq_distance | ( | const CGLA::Vec3f & | p, |
float & | dmin, | ||
float & | dmax, | ||
float & | s | ||
) | const [inline, virtual] |
For a given point, return the min and max square distance and the sign. Non-leafs return zero for the sign. Leaves return the square of the true distance as both min and max.
Reimplemented from Geometry::BoundingNode< BoxType >.