#include <Bound.h>
Inheritance diagram for H3D::BoxBound:

Public Member Functions | |
| BoxBound (Inst< SFVec3f > _center=0, Inst< SFVec3f > _size=0) | |
| Constructor. | |
| template<class InputIterator> | |
| void | fitAroundPoints (InputIterator begin, InputIterator end) |
| This function sets the BoxBound to encompass all the points between the begin and end iterators. | |
| template<class InputIterator> | |
| void | fitAround2DPoints (InputIterator begin, InputIterator end) |
| virtual bool | isInside (const Vec3f &p) |
| Determines if a given point is inside the bound or not. | |
| virtual bool | lineSegmentIntersect (const Vec3f &from, const Vec3f &to) |
| Checks a line segment for intersection with the bound. | |
| virtual Vec3f | closestPoint (const Vec3f &p) |
Public Attributes | |
| auto_ptr< SFVec3f > | center |
| The center point of the bounding box. | |
| auto_ptr< SFVec3f > | size |
| The size of the bounding box. | |
The center field is the center point of the bounding box and the size field is the size of the bounding box.
|
||||||||||||||||
|
This function sets the BoxBound to encompass all the points between the begin and end iterators. The iterator must have a value_type of Vec3f |
|
||||||||||||
|
Checks a line segment for intersection with the bound. If line intersects, true is returned. Implements H3D::Bound. |
1.4.5