Public Types |
typedef BoxScalarType | ScalarType |
| The scalar type.
|
Public Member Functions |
void | Add (const Matrix44< BoxScalarType > &m, const Box3< BoxScalarType > &b) |
void | Add (const Point3< BoxScalarType > &p) |
void | Add (Box3< BoxScalarType > const &b) |
| Box3 (const Point3< BoxScalarType > ¢er, const BoxScalarType &radius) |
| Point Radius Constructor.
|
| Box3 (const Point3< BoxScalarType > &mi, const Point3< BoxScalarType > &ma) |
| Min Max constructor.
|
| Box3 (const Box3 &b) |
| Copy constructor.
|
| Box3 () |
| The bounding box constructor.
|
Point3< BoxScalarType > | Center () const |
| Calcola il centro del bounding box.
|
bool | Collide (Box3< BoxScalarType > const &b) const |
BoxScalarType | Diag () const |
| Restituisce la lunghezza della diagonale del bounding box.
|
Point3< BoxScalarType > | Dim () const |
| Compute bounding box size.
|
BoxScalarType | DimX () const |
| Calcola la dimensione del bounding box sulla x.
|
BoxScalarType | DimY () const |
| Calcola la dimensione del bounding box sulla y.
|
BoxScalarType | DimZ () const |
| Calcola la dimensione del bounding box sulla z.
|
Point3< BoxScalarType > | GlobalToLocal (Point3< BoxScalarType > const &p) const |
| Returns local coords expressed in [0..1]^3 of a point in 3D.
|
template<class Q > |
void | Import (const Box3< Q > &b) |
void | Intersect (const Box3< BoxScalarType > &b) |
bool | IsEmpty () const |
bool | IsIn (Point3< BoxScalarType > const &p) const |
bool | IsInEx (Point3< BoxScalarType > const &p) const |
bool | IsNull () const |
Point3< BoxScalarType > | LocalToGlobal (Point3< BoxScalarType > const &p) const |
| Returns global coords of a local point expressed in [0..1]^3.
|
unsigned char | MaxDim () const |
| Calcola il lato di lunghezza maggiore.
|
unsigned char | MinDim () const |
| Calcola il lato di lunghezza minore.
|
void | Offset (const Point3< BoxScalarType > &delta) |
void | Offset (const BoxScalarType s) |
bool | operator!= (Box3< BoxScalarType > const &p) const |
| Operator to dispare two bounding box.
|
bool | operator== (Box3< BoxScalarType > const &p) const |
| Operator to compare two bounding box.
|
Point3< BoxScalarType > | P (const int &i) const |
| gives the ith box vertex in order: (x,y,z),(X,y,z),(x,Y,z),(X,Y,z),(x,y,Z),(X,y,Z),(x,Y,Z),(X,Y,Z)
|
void | Set (const Point3< BoxScalarType > &p) |
| Initializing the bounding box.
|
void | SetNull () |
| Set the bounding box to a null value.
|
BoxScalarType | SquaredDiag () const |
| Calcola il quadrato della diagonale del bounding box.
|
void | Translate (const Point3< BoxScalarType > &p) |
BoxScalarType | Volume () const |
| Calcola il volume del bounding box.
|
| ~Box3 () |
| The bounding box distructor.
|
Static Public Member Functions |
template<class Q > |
static Box3 | Construct (const Box3< Q > &b) |
Public Attributes |
Point3< BoxScalarType > | max |
| max coordinate point
|
Point3< BoxScalarType > | min |
| min coordinate point
|
Templated class for 3D boxes. This is the class for definition of a axis aligned bounding box in 3D space. It is stored just as two Point3
template<class BoxScalarType>
Point3<BoxScalarType> vcg::Box3< BoxScalarType >::P |
( |
const int & |
i |
) |
const [inline] |
gives the ith box vertex in order: (x,y,z),(X,y,z),(x,Y,z),(X,Y,z),(x,y,Z),(X,y,Z),(x,Y,Z),(X,Y,Z)
Definition at line 367 of file box3.h.