38#include <Inventor/SbVec3f.h>
58 { minpt.setValue(
xmin, ymin,
zmin); maxpt.setValue(
xmax, ymax,
zmax);
return *
this; }
77 void transform(
const SbMatrix & matrix);
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 SbVec3f &
pt)
const;
95 else {
sizeX = maxpt[0] - minpt[0];
sizeY = maxpt[1] - minpt[1];
sizeZ = maxpt[2] - minpt[2]; } }
99 this->getSize(v[0], v[1], v[2]);
112 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
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:46
SbVec3f getCenter(void) const
Definition SbBox3f.h:90
void getOrigin(float &originX, float &originY, float &originZ) const
Definition SbBox3f.h:91
SbVec3f & getMin(void)
Definition SbBox3f.h:71
SbBox3f & setBounds(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)
Definition SbBox3f.h:57
void getBounds(SbVec3f &minpoint, SbVec3f &maxpoint) const
Definition SbBox3f.h:67
SbBox3f & setBounds(const SbVec3f &minpoint, const SbVec3f &maxpoint)
Definition SbBox3f.h:59
SbBool hasVolume(void) const
Definition SbBox3f.h:80
void getBounds(float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax) const
Definition SbBox3f.h:65
SbVec3f & getMax(void)
Definition SbBox3f.h:73
SbBool isEmpty(void) const
Definition SbBox3f.h:79
void getSize(float &sizeX, float &sizeY, float &sizeZ) const
Definition SbBox3f.h:93
const SbVec3f & getMax(void) const
Definition SbBox3f.h:72
float getVolume(void) const
Definition SbBox3f.h:82
SbBox3f(const SbBox3s &box)
Definition SbBox3f.h:54
SbVec3f getSize(void) const
Definition SbBox3f.h:97
SbBox3f(const SbBox3i32 &box)
Definition SbBox3f.h:55
SbBox3f(void)
Definition SbBox3f.h:48
SbBox3f(const SbVec3f &minpoint, const SbVec3f &maxpoint)
Definition SbBox3f.h:51
const SbVec3f & getMin(void) const
Definition SbBox3f.h:70
SbBox3f(const SbBox3d &box)
Definition SbBox3f.h:53
SbBox3f(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)
Definition SbBox3f.h:49
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 SbList class is a template container class for lists.
Definition SbList.h:70
SbList(const int sizehint=DEFAULTSIZE)
Definition SbList.h:78
The SbMatrix class is a 4x4 dimensional representation of a matrix.
Definition SbMatrix.h:47
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:51