logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SbBox3f — 3D box class

Description

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

Inherits From

       SbBox3f

Methods

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.

Name

       SbBox3f — 3D box class

See Also

SbXfBox3f,SbBox2f,SbBox2s,SbVec3f,SbVec2f,SbVec2s,SbMatrix,SoGetBoundingBoxActionSbBox3f(3IV)()

Synopsis

#include<Inventor/SbBox.h>

          Methods from class SbBox3f:

                         SbBox3f()SbBox3f(floatxmin,floatymin,floatzminfloatxmax,floatymax,floatzmax)SbBox3f(constSbVec3f&min,constSbVec3f&max)void~SbBox3f()constSbVec3f&getMin()constSbVec3f&getMax()SbVec3fgetCenter()voidextendBy(constSbVec3f&point)voidextendBy(constSbBox3f&box)SbBoolintersect(constSbVec3f&point)SbBoolintersect(constSbBox3f&box)voidsetBounds(floatxmin,floatymin,floatzmin,floatxmax,floatymax,floatzmax)voidsetBounds(constSbVec3f&min,constSbVec3f&max)voidgetBounds(float&xmin,float&ymin,float&zmin,float&xmax,float&ymax,float&zmax)voidgetBounds(SbVec3f&min,SbVec3f&max)voidgetOrigin(float&x0,float&y0,float&z0)voidgetSize(float&x,float&y,float&z)voidmakeEmpty()SbBoolisEmpty()SbBoolhasVolume()voidgetSpan(SbVec3f&dir,float&dMin,float&dMax)voidtransform(constSbMatrix&mx)floatgetVolume()

See Also