38#include <Inventor/SbVec3d.h>
58 { minpt.setValue(
xmin, ymin,
zmin); maxpt.setValue(
xmax, ymax,
zmax);
return *
this; }
79 SbBool
isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
81 {
return ((maxpt[0] > minpt[0]) && (maxpt[1] > minpt[1]) && (maxpt[2] > minpt[2])); }
85 SbBool intersect(
const SbVec3d & point)
const;
95 else {
sizeX = maxpt[0] - minpt[0];
sizeY = maxpt[1] - minpt[1];
sizeZ = maxpt[2] - minpt[2]; } }
98 this->getSize(v[0], v[1], v[2]);
111 return ((
b1.getMin() ==
b2.getMin()) && (
b1.getMax() ==
b2.getMax()));
The SbBox3d class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3d.h:46
SbBox3d(const SbBox3i32 &box)
Definition SbBox3d.h:55
SbVec3d getCenter(void) const
Definition SbBox3d.h:90
SbBool hasVolume(void) const
Definition SbBox3d.h:80
const SbVec3d & getMin(void) const
Definition SbBox3d.h:70
SbBox3d(const SbBox3s &box)
Definition SbBox3d.h:54
SbBox3d & setBounds(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
Definition SbBox3d.h:57
SbBool isEmpty(void) const
Definition SbBox3d.h:79
SbBox3d(void)
Definition SbBox3d.h:48
void getBounds(double &xmin, double &ymin, double &zmin, double &xmax, double &ymax, double &zmax) const
Definition SbBox3d.h:65
SbVec3d & getMin(void)
Definition SbBox3d.h:71
SbBox3d & setBounds(const SbVec3d &minpoint, const SbVec3d &maxpoint)
Definition SbBox3d.h:59
const SbVec3d & getMax(void) const
Definition SbBox3d.h:72
void getOrigin(double &origoX, double &origoY, double &origoZ) const
Definition SbBox3d.h:91
void getSize(double &sizeX, double &sizeY, double &sizeZ) const
Definition SbBox3d.h:93
SbVec3d getSize(void) const
Definition SbBox3d.h:96
SbBox3d(const SbBox3f &box)
Definition SbBox3d.h:53
SbVec3d & getMax(void)
Definition SbBox3d.h:73
SbBox3d(double xmin, double ymin, double zmin, double xmax, double ymax, double zmax)
Definition SbBox3d.h:49
SbBox3d(const SbVec3d &minpoint, const SbVec3d &maxpoint)
Definition SbBox3d.h:51
double getVolume(void) const
Definition SbBox3d.h:82
void getBounds(SbVec3d &minpoint, SbVec3d &maxpoint) const
Definition SbBox3d.h:67
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:46
The SbBox3i32 class is a 3 dimensional box with 32-bit integer coordinates.
Definition SbBox3i32.h:44
The SbBox3s class is a 3 dimensional box with short integer coordinates.
Definition SbBox3s.h:43
The SbDPMatrix class is a 4x4 dimensional representation of a double-precision matrix.
Definition SbDPMatrix.h:47
The SbList class is a template container class for lists.
Definition SbList.h:70
SbList(const int sizehint=DEFAULTSIZE)
Definition SbList.h:78
The SbVec3d class is a 3 dimensional vector with double precision floating point coordinates.
Definition SbVec3d.h:50