#include <aabb3.h>
Public Member Functions | |
| AABB3 () | |
| Invalidates the AABB. | |
| AABB3 (const AABB3 &aabb) | |
| AABB3 (const Point3 &min, const Point3 &max) | |
| void | Invalidate () |
| bool | IsValid () const |
| void | Include (const Point3 &point) |
| void | Include (const AABB3 &aabb) |
| void | Include (const BS &bs) |
| void | Intersect (const AABB3 &aabb) |
| bool | Overlaps (const AABB3 &aabb) const |
| bool | Contains (const Point3 &point) const |
| Point3 | GetCenter () const |
| Vector3 | GetSize () const |
| Returns bounding box dimensions (m_max - m_min). | |
| void | Scale (const Vector3 &scale) |
| void | Extend (const Vector3 &ext) |
| AABB3 | Transform (const Matrix4 &m) const |
Static Public Member Functions | |
| AABB3 | Biggest () |
| Returns the largest possible bounding box. | |
Public Attributes | |
| Point3 | m_min |
| Point3 | m_max |
|
|
Invalidates the AABB.
|
|
|
|
|
||||||||||||
|
|
|
|
Returns the largest possible bounding box.
|
|
|
|
|
|
Offsets the box corners outward by a given amount on each axis, without affecting the box center. Definition at line 216 of file aabb3.h. Referenced by toxic::Cube::Cube(), toxic::DummyObject::DummyObject(), toxic::Mesh::Finalize(), toxic::Ring::Ring(), toxic::Sphere::Sphere(), and toxic::Square::Square(). |
|
|
Definition at line 192 of file aabb3.h. Referenced by toxic::Mesh::triangle_voxel_intersector::Intersect(). |
|
|
Returns bounding box dimensions (m_max - m_min).
|
|
|
|
|
|
|
|
|
Definition at line 140 of file aabb3.h. Referenced by toxic::Octree::Finalize(), toxic::Mesh::Finalize(), sheep::GLMesh::Insert(), and Transform(). |
|
|
Warning, calling the Intersect() method may result in an invalid bounding box. |
|
|
Definition at line 126 of file aabb3.h. Referenced by toxic::Octree::Finalize(), and toxic::Mesh::Finalize(). |
|
|
|
|
|
Definition at line 170 of file aabb3.h. Referenced by toxic::Octree::object_voxel_intersector::Intersect(). |
|
|
Scales the box extent by a given factor on each axis without affecting the box center. |
|
|
Definition at line 36 of file aabb3.cpp. References Include(), sheep::Point3::m_x, sheep::Point3::m_y, and sheep::Point3::m_z. Referenced by toxic::Cube::Cube(), toxic::DummyObject::DummyObject(), toxic::Ring::Ring(), toxic::Sphere::Sphere(), and toxic::Square::Square(). |
|
|
Definition at line 39 of file aabb3.h. Referenced by toxic::Mesh::triangle_voxel_intersector::Intersect(), sheep::OctreeNode< const triangle * >::Subdivide(), and sheep::OctreeNode< const triangle * >::Trace(). |
|
|
Definition at line 39 of file aabb3.h. Referenced by sheep::OctreeNode< const triangle * >::Subdivide(), and sheep::OctreeNode< const triangle * >::Trace(). |
1.3.6