#include <BoundingBox.h>
◆ BoundingBox() [1/3]
prtx::BoundingBox::BoundingBox |
( |
| ) |
|
Constructs an "empty" bounding box with infinite bounds.
◆ BoundingBox() [2/3]
Constructs bounding box with preset bounds.
◆ BoundingBox() [3/3]
prtx::BoundingBox::BoundingBox |
( |
const double * |
extMin, |
|
|
const double * |
extMax |
|
) |
| |
Constructs bounding box with preset bounds.
◆ add() [1/2]
void prtx::BoundingBox::add |
( |
const BoundingBox & |
bbox | ) |
|
Extend with another bounding box.
◆ add() [2/2]
void prtx::BoundingBox::add |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
z |
|
) |
| |
Extend bounding box to point (x,y,z).
◆ getCenter()
- Returns
- The center point (3 elements).
◆ getCenterBottom()
- Returns
- The "bottom" center point. Bottom is relative to y-direction.
◆ getDiameter()
double prtx::BoundingBox::getDiameter |
( |
| ) |
const |
◆ getMax()
- Returns
- A reference to the max point.
◆ getMin()
- Returns
- A reference to the min point.
◆ getMinMax()
◆ getSize()
Resizes s to 3 elements and returns the size of the box.
◆ isModified()
bool prtx::BoundingBox::isModified |
( |
| ) |
const |
- Returns
- True, if anything as been added to the bounding box. False, if bounding box is "empty", i.e. has infinite bounds.
◆ reset()
void prtx::BoundingBox::reset |
( |
| ) |
|
Reset to infinite bounds.
◆ translate()
Translates bounding box by vector t, t must have 3 elements.
The documentation for this class was generated from the following file: