Coin Logo Coin3D is Free Software,
published under the BSD 3-clause license.
https://coin3d.github.io
https://www.kongsberg.com/en/kogt/
SbBox3i32 Class Reference

Public Member Functions

 SbBox3i32 (int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax)
 
 SbBox3i32 (const SbVec3i32 &minpoint, const SbVec3i32 &maxpoint)
 
 SbBox3i32 (const SbBox3s &box)
 
 SbBox3i32 (const SbBox3f &box)
 
 SbBox3i32 (const SbBox3d &box)
 
SbBox3i32setBounds (int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax)
 
SbBox3i32setBounds (const SbVec3i32 &minpoint, const SbVec3i32 &maxpoint)
 
SbBox3i32setBounds (const SbBox3s &box)
 
SbBox3i32setBounds (const SbBox3f &box)
 
SbBox3i32setBounds (const SbBox3d &box)
 
void getBounds (int32_t &xmin, int32_t &ymin, int32_t &zmin, int32_t &xmax, int32_t &ymax, int32_t &zmax) const
 
void getBounds (SbVec3i32 &minpoint, SbVec3i32 &maxpoint) const
 
const SbVec3i32getMin (void) const
 
SbVec3i32getMin (void)
 
const SbVec3i32getMax (void) const
 
SbVec3i32getMax (void)
 
void extendBy (const SbVec3i32 &pt)
 
void extendBy (const SbBox3i32 &bb)
 
void extendBy (const SbVec3f &pt)
 
void transform (const SbMatrix &m)
 
void makeEmpty (void)
 
SbBool isEmpty (void) const
 
SbBool hasVolume (void) const
 
float getVolume (void) const
 
SbBool intersect (const SbVec3i32 &pt) const
 
SbBool intersect (const SbBox3i32 &bb) const
 
SbBool intersect (const SbVec3f &pt) const
 
SbBool outside (const SbMatrix &MVP, int &cullBits) const
 
SbVec3f getClosestPoint (const SbVec3f &pt) const
 
SbVec3f getCenter (void) const
 
void getOrigin (int32_t &originX, int32_t &originY, int32_t &originZ) const
 
void getSize (int32_t &sizeX, int32_t &sizeY, int32_t &sizeZ) const
 
SbVec3i32 getSize (void) const
 
void getSpan (const SbVec3f &direction, float &dmin, float &dmax) const
 

Protected Attributes

SbVec3i32 minpt
 
SbVec3i32 maxpt
 

Member Function Documentation

◆ setBounds() [1/3]

SbBox3i32 & SbBox3i32::setBounds ( const SbBox3s box)

Reset the boundaries to the boundaries of the given box.

Returns reference to self.

See also
getBounds()

◆ setBounds() [2/3]

SbBox3i32 & SbBox3i32::setBounds ( const SbBox3f box)

Reset the boundaries to the boundaries of the given box.

Returns reference to self.

See also
getBounds()

◆ setBounds() [3/3]

SbBox3i32 & SbBox3i32::setBounds ( const SbBox3d box)

Reset the boundaries to the boundaries of the given box.

Returns reference to self.

See also
getBounds()

The documentation for this class was generated from the following files: