SbBox3f()SbBox3f(floatxmin,floatymin,floatzminfloatxmax,floatymax,floatzmax)SbBox3f(constSbVec3f&min,constSbVec3f&max)void~SbBox3f()
Constructors and destructor for a 3D float box. xmin, ymin, zmin, xmax, ymax and zmax are the bounds
of the box. min and max are the corners of the diagonal that define the box.
constSbVec3f&getMin()constSbVec3f&getMax()
Returns the minimum and maximum points of the box. The minimum point is the corner of the box with the
lowest X, Y, and Z values. The maximum point is the corner of the box with the highest X, Y, and Z
values.
SbVec3fgetCenter()
Returns the center of the box.
voidextendBy(constSbVec3f&point)voidextendBy(constSbBox3f&box)
Extends this box (if necessary) to contain the specified point or other box.
SbBoolintersect(constSbVec3f&point)SbBoolintersect(constSbBox3f&box)
Returns TRUE if the specified point or box intersects this box.
voidsetBounds(floatxmin,floatymin,floatzmin,floatxmax,floatymax,floatzmax)voidsetBounds(constSbVec3f&min,constSbVec3f&max)
Sets the corners of the box.
voidgetBounds(float&xmin,float&ymin,float&zmin,float&xmax,float&ymax,float&zmax)voidgetBounds(SbVec3f&min,SbVec3f&max)
Gets the corners of the box.
voidgetOrigin(float&x0,float&y0,float&z0)
Gets box origin which is the same as the minimum corner of the box.
voidgetSize(float&x,float&y,float&z)
Gets box size.
voidmakeEmpty()
Makes an empty box.
SbBoolisEmpty()
Returns TRUE if the box is empty, and FALSE otherwise.
SbBoolhasVolume()
Returns TRUE if all three dimensions of the box have positive size, and FALSE otherwise.
voidgetSpan(SbVec3f&dir,float&dMin,float&dMax)
Finds the span of a box along a specified direction. The span is the total distance the box occupies
along a given direction. The total distance is returned in the form of a minimum and maximum distance
from the origin of each of the corners of the box along the given direction. The difference between
these two values is the span.
voidtransform(constSbMatrix&mx)
Transforms box by matrix, enlarging box to contain result.
floatgetVolume()
Returns the volume of the box.