|  | 
|  | Box3 () | 
|  | The bounding box constructor. 
 | 
|  | 
|  | Box3 (const Point3< BoxScalarType > &mi, const Point3< BoxScalarType > &ma) | 
|  | Min Max constructor. 
 | 
|  | 
|  | Box3 (const Point3< BoxScalarType > ¢er, const BoxScalarType &radius) | 
|  | Point Radius Constructor. 
 | 
|  | 
|  | ~Box3 () | 
|  | The bounding box distructor. 
 | 
|  | 
| bool | operator== (const Box3< BoxScalarType > &p) const | 
|  | Operator to compare two bounding box. 
 | 
|  | 
| bool | operator!= (const Box3< BoxScalarType > &p) const | 
|  | Operator to dispare two bounding box. 
 | 
|  | 
| void | Offset (const BoxScalarType s) | 
|  | 
| void | Offset (const Point3< BoxScalarType > &delta) | 
|  | 
| void | Set (const Point3< BoxScalarType > &p) | 
|  | Initializing the bounding box. 
 | 
|  | 
| void | SetNull () | 
|  | Set the bounding box to a null value. 
 | 
|  | 
| void | Add (const Box3< BoxScalarType > &b) | 
|  | 
| void | Add (const Point3< BoxScalarType > &p) | 
|  | 
| void | Add (const Point3< BoxScalarType > &p, const BoxScalarType radius) | 
|  | 
| void | Add (const Matrix44< BoxScalarType > &m, const Box3< BoxScalarType > &b) | 
|  | 
| void | Intersect (const Box3< BoxScalarType > &b) | 
|  | 
| void | Translate (const Point3< BoxScalarType > &p) | 
|  | 
| bool | IsIn (const Point3< BoxScalarType > &p) const | 
|  | 
| bool | IsInEx (const Point3< BoxScalarType > &p) const | 
|  | 
| bool | Collide (const Box3< BoxScalarType > &b) const | 
|  | 
| bool | IsNull () const | 
|  | 
| bool | IsEmpty () const | 
|  | 
| BoxScalarType | Diag () const | 
|  | Return the lenght of the diagonal of the box . 
 | 
|  | 
| BoxScalarType | SquaredDiag () const | 
|  | Calcola il quadrato della diagonale del bounding box. 
 | 
|  | 
| Point3< BoxScalarType > | Center () const | 
|  | Return the center of the box. 
 | 
|  | 
| Point3< BoxScalarType > | Dim () const | 
|  | Compute bounding box size. 
 | 
|  | 
| Point3< BoxScalarType > | LocalToGlobal (const Point3< BoxScalarType > &p) const | 
|  | Returns global coords of a local point expressed in [0..1]^3. 
 | 
|  | 
| Point3< BoxScalarType > | GlobalToLocal (const Point3< BoxScalarType > &p) const | 
|  | Returns local coords expressed in [0..1]^3 of a point in 3D. 
 | 
|  | 
| BoxScalarType | Volume () const | 
|  | Return the volume of the box. 
 | 
|  | 
| 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. 
 | 
|  | 
| unsigned char | MaxDim () const | 
|  | Calcola il lato di lunghezza maggiore. 
 | 
|  | 
| unsigned char | MinDim () const | 
|  | Calcola il lato di lunghezza minore. 
 | 
|  | 
| template<class Q > | 
| void | Import (const Box3< Q > &b) | 
|  | 
| Point3< BoxScalarType > | P (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) 
 | 
|  | 
template<class BoxScalarType>
class vcg::Box3< BoxScalarType >
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 
- Parameters
- 
  
    | BoxScalarType | (template parameter) Specifies the type of scalar used to represent coords. |  
 
The templated class for representing a point in 3D space. The class is templated over the ScalarType class that is used to represent coordinates. All the usual operator overloading (* + - ...) is present.