27#include <Inventor/SbVec3s.h>
28#include <Inventor/SbVec3f.h>
46 { minpt.setValue(
xmin, ymin,
zmin); maxpt.setValue(
xmax, ymax,
zmax);
return *
this; }
54 short &
xmax,
short & ymax,
short &
zmax)
const
60 SbVec3s & getMin(
void) {
return minpt; }
62 SbVec3s & getMax(
void) {
return maxpt; }
67 SbBool isEmpty(
void)
const {
return (maxpt[0] < minpt[0]); }
68 SbBool hasVolume(
void)
const
69 {
return ((maxpt[0] > minpt[0]) && (maxpt[1] > minpt[1]) && (maxpt[2] > minpt[2])); }
70 int getVolume(
void)
const
73 SbBool intersect(
const SbVec3s &
pt)
const;
78 {
return SbVec3f((minpt[0]+maxpt[0])*0.5f, (minpt[1]+maxpt[1])*0.5f, (minpt[2]+maxpt[2])*0.5f); }
83 else {
sizeX = maxpt[0] - minpt[0];
sizeY = maxpt[1] - minpt[1];
sizeZ = maxpt[2] - minpt[2]; } }
91 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:37
The SbBox3f class is an abstraction for an axis aligned 3 dimensional box.
Definition SbBox3f.h:37
The SbBox3s class is a 3 dimensional box with short integer coordinates.
Definition SbBox3s.h:34
SbBox3s(const SbVec3s &minpoint, const SbVec3s &maxpoint)
Definition SbBox3s.h:39
const SbVec3s & getMax(void) const
Definition SbBox3s.h:61
void getBounds(SbVec3s &minpoint, SbVec3s &maxpoint) const
Definition SbBox3s.h:56
SbBox3s & setBounds(short xmin, short ymin, short zmin, short xmax, short ymax, short zmax)
Definition SbBox3s.h:45
void getBounds(short &xmin, short &ymin, short &zmin, short &xmax, short &ymax, short &zmax) const
Definition SbBox3s.h:53
SbBox3s & setBounds(const SbVec3s &minpoint, const SbVec3s &maxpoint)
Definition SbBox3s.h:47
const SbVec3s & getMin(void) const
Definition SbBox3s.h:59
void getOrigin(short &originX, short &originY, short &originZ) const
Definition SbBox3s.h:79
SbBox3s(short xmin, short ymin, short zmin, short xmax, short ymax, short zmax)
Definition SbBox3s.h:37
void getSize(short &sizeX, short &sizeY, short &sizeZ) const
Definition SbBox3s.h:81
SbBox3s(void)
Definition SbBox3s.h:36
The SbList class is a template container class for lists.
Definition SbList.h:61
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40
The SbVec3s class is a 3 dimensional vector with short integer coordinates.
Definition SbVec3s.h:39