Axis-aligned minimal 3D bounding box.
#include <Bbox3.h>
|
double | minX |
|
double | minY |
|
double | minZ |
|
double | maxX |
|
double | maxY |
|
double | maxZ |
|
|
class | HC3 |
|
std::ostream & | operator<< (std::ostream &stream, Bbox3 &pC) |
|
◆ Bbox3() [1/2]
Constructor. The bounds of the bounding box are initialized to -DBL_MAX and +DBL_MAX values. The bounding box becomes valid as soon as points are added.
◆ Bbox3() [2/2]
FADE3D::Bbox3::Bbox3 |
( |
const std::vector< Point3 > & |
vPoints | ) |
|
|
inlineexplicit |
This constructor computes the axis aligned minimal bounding box of the points in vPoints
◆ add() [1/2]
bool FADE3D::Bbox3::add |
( |
const std::vector< Point3 > & |
vPoints | ) |
|
|
inline |
Add vPoints
to the bounding box.
- Returns
- true if the bounds of the present Bbox3 have changed
-
false otherwise
◆ add() [2/2]
bool FADE3D::Bbox3::add |
( |
const Point3 & |
p | ) |
|
|
inline |
Add p
to the bounding box
- Returns
- true if the bounds of the present Bbox3 have changed
-
false otherwise
◆ getMaxCoord()
double FADE3D::Bbox3::getMaxCoord |
( |
| ) |
|
|
inline |
- Returns
- the maximum of (maxX,maxY,maxZ)
◆ getMaxPoint()
Point3 FADE3D::Bbox3::getMaxPoint |
( |
| ) |
|
|
inline |
- Returns
- the point with the largest coordinates of the bounding box
◆ getMaxRange()
double FADE3D::Bbox3::getMaxRange |
( |
| ) |
const |
|
inline |
- Returns
- the maximum of rangeX,rangeY and rangeZ
◆ getMaxX()
double FADE3D::Bbox3::getMaxX |
( |
| ) |
const |
|
inline |
◆ getMaxY()
double FADE3D::Bbox3::getMaxY |
( |
| ) |
const |
|
inline |
◆ getMaxZ()
double FADE3D::Bbox3::getMaxZ |
( |
| ) |
const |
|
inline |
◆ getMinCoord()
double FADE3D::Bbox3::getMinCoord |
( |
| ) |
|
|
inline |
- Returns
- the minimum of (minX,minY,minZ)
◆ getMinPoint()
Point3 FADE3D::Bbox3::getMinPoint |
( |
| ) |
|
|
inline |
- Returns
- the point with the smallest coordinates of the bounding box
◆ getMinX()
double FADE3D::Bbox3::getMinX |
( |
| ) |
const |
|
inline |
◆ getMinY()
double FADE3D::Bbox3::getMinY |
( |
| ) |
const |
|
inline |
◆ getMinZ()
double FADE3D::Bbox3::getMinZ |
( |
| ) |
const |
|
inline |
◆ getRangeX()
double FADE3D::Bbox3::getRangeX |
( |
| ) |
const |
|
inline |
- Returns
- the x-range maxX-minX
◆ getRangeY()
double FADE3D::Bbox3::getRangeY |
( |
| ) |
const |
|
inline |
- Returns
- the y-range maxY-minY
◆ getRangeZ()
double FADE3D::Bbox3::getRangeZ |
( |
| ) |
const |
|
inline |
- Returns
- the z-range maxZ-minZ
◆ isValid()
bool FADE3D::Bbox3::isValid |
( |
| ) |
|
|
inline |
Check if the bounding box has valid bounds. After construction the bounds are initialized to DBL_MAX and DBL_MIN. As soon as the first point is added Bbox3 becomes valid.
◆ operator+()
Add another Bbox3 to the present one.
- Returns
- the axis aligned minimal bounding box of the union of the two boxes.
The documentation for this class was generated from the following file:
- /home/geom/repo/dev/geomDev/dt3/dt3Library/Bbox3.h