GEL  2
GEL is a library for Geometry and Linear Algebra
Public Member Functions
Geometry::BoundingLNode< BoxType > Class Template Reference

Leaf node of a bounding box tree. References triangle. More...

#include <BoundingLNode.h>

Inherits Geometry::BoundingNode< BoxType >.

List of all members.

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

Detailed Description

template<class BoxType>
class Geometry::BoundingLNode< BoxType >

Leaf node of a bounding box tree. References triangle.


Member Function Documentation

template<class BoxType >
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 >.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations