1SbBox3f(3IV)()                                                  SbBox3f(3IV)()
2
3
4

NAME

6       SbBox3f — 3D box class
7

INHERITS FROM

9       SbBox3f
10

SYNOPSIS

12       #include <Inventor/SbBox.h>
13
14          Methods from class SbBox3f:
15
16                         SbBox3f()
17                         SbBox3f(float  xmin,  float  ymin,  float  zmin float
18                              xmax, float ymax, float zmax)
19                         SbBox3f(const SbVec3f &min, const SbVec3f &max)
20     void                ~SbBox3f()
21     const SbVec3f &     getMin()
22     const SbVec3f &     getMax()
23     SbVec3f             getCenter()
24     void                extendBy(const SbVec3f &point)
25     void                extendBy(const SbBox3f &box)
26     SbBool              intersect(const SbVec3f &point)
27     SbBool              intersect(const SbBox3f &box)
28     void                setBounds(float xmin, float ymin, float  zmin,  float
29                              xmax, float ymax, float zmax)
30     void                setBounds(const SbVec3f &min, const SbVec3f &max)
31     void                getBounds(float  &xmin,  float  &ymin,  float  &zmin,
32                              float &xmax, float &ymax, float &zmax)
33     void                getBounds(SbVec3f &min, SbVec3f &max)
34     void                getOrigin(float &x0, float &y0, float &z0)
35     void                getSize(float &x, float &y, float &z)
36     void                makeEmpty()
37     SbBool              isEmpty()
38     SbBool              hasVolume()
39     void                getSpan(SbVec3f &dir, float &dMin, float &dMax)
40     void                transform(const SbMatrix &mx)
41     float               getVolume()
42
43

DESCRIPTION

45       3D box which has planes parallel to the major axes and is specified  by
46       two  points  on a diagonal. This class is part of the standard Inventor
47       datatype classes and is used as input and output to geometry operations
48       (see SoGetBoundingBoxAction).
49

METHODS

51                         SbBox3f()
52                         SbBox3f(float  xmin,  float  ymin,  float  zmin float
53                              xmax, float ymax, float zmax)
54                         SbBox3f(const SbVec3f &min, const SbVec3f &max)
55     void                ~SbBox3f()
56          Constructors and destructor for a 3D float box.  xmin,  ymin,  zmin,
57          xmax,  ymax  and zmax are the bounds of the box. min and max are the
58          corners of the diagonal that define the box.
59
60     const SbVec3f &     getMin()
61     const SbVec3f &     getMax()
62          Returns the minimum and maximum points of the box. The minimum point
63          is  the  corner  of  the box with the lowest X, Y, and Z values. The
64          maximum point is the corner of the box with the highest X, Y, and  Z
65          values.
66
67     SbVec3f             getCenter()
68          Returns the center of the box.
69
70     void                extendBy(const SbVec3f &point)
71     void                extendBy(const SbBox3f &box)
72          Extends  this  box  (if necessary) to contain the specified point or
73          other box.
74
75     SbBool              intersect(const SbVec3f &point)
76     SbBool              intersect(const SbBox3f &box)
77          Returns TRUE if the specified point or box intersects this box.
78
79     void                setBounds(float xmin, float ymin, float  zmin,  float
80                              xmax, float ymax, float zmax)
81     void                setBounds(const SbVec3f &min, const SbVec3f &max)
82          Sets the corners of the box.
83
84     void                getBounds(float  &xmin,  float  &ymin,  float  &zmin,
85                              float &xmax, float &ymax, float &zmax)
86     void                getBounds(SbVec3f &min, SbVec3f &max)
87          Gets the corners of the box.
88
89     void                getOrigin(float &x0, float &y0, float &z0)
90          Gets box origin which is the same as the minimum corner of the box.
91
92     void                getSize(float &x, float &y, float &z)
93          Gets box size.
94
95     void                makeEmpty()
96          Makes an empty box.
97
98     SbBool              isEmpty()
99          Returns TRUE if the box is empty, and FALSE otherwise.
100
101     SbBool              hasVolume()
102          Returns TRUE if all three dimensions of the box have positive  size,
103          and FALSE otherwise.
104
105     void                getSpan(SbVec3f &dir, float &dMin, float &dMax)
106          Finds the span of a box along a specified direction. The span is the
107          total distance the box occupies along a given direction.  The  total
108          distance  is  returned in the form of a minimum and maximum distance
109          from the origin of each of the corners of the box  along  the  given
110          direction. The difference between these two values is the span.
111
112     void                transform(const SbMatrix &mx)
113          Transforms box by matrix, enlarging box to contain result.
114
115     float               getVolume()
116          Returns the volume of the box.
117
118

SEE ALSO

120       SbXfBox3f,  SbBox2f,  SbBox2s,  SbVec3f,  SbVec2f,  SbVec2s,  SbMatrix,
121       SoGetBoundingBoxAction
122
123
124
125
126                                                                SbBox3f(3IV)()
Impressum