GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SBBOX3F (3)

NAME

SbBox3f — 3D box class

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbBox3f

SYNOPSIS

#include <Inventor/SbBox.h>

Methods from class SbBox3f:

       
                    
                     SbBox3f()    
   
                    
                     SbBox3f(float xmin, float ymin, float zmin float xmax, float ymax, float zmax)    
   
                    
                     SbBox3f(const SbVec3f &min, const SbVec3f &max)    
void    
                    
void                 ~SbBox3f()    
const SbVec3f &    
                    
const SbVec3f &      getMin()    
const SbVec3f &    
                    
const SbVec3f &      getMax()    
SbVec3f    
                    
SbVec3f              getCenter()    
void    
                    
void                 extendBy(const SbVec3f &point)    
void    
                    
void                 extendBy(const SbBox3f &box)    
SbBool    
                    
SbBool               intersect(const SbVec3f &point)    
SbBool    
                    
SbBool               intersect(const SbBox3f &box)    
void    
                    
void                 setBounds(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)    
void    
                    
void                 setBounds(const SbVec3f &min, const SbVec3f &max)    
void    
                    
void                 getBounds(float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax)    
void    
                    
void                 getBounds(SbVec3f &min, SbVec3f &max)    
void    
                    
void                 getOrigin(float &x0, float &y0, float &z0)    
void    
                    
void                 getSize(float &x, float &y, float &z)    
void    
                    
void                 makeEmpty()    
SbBool    
                    
SbBool               isEmpty()    
SbBool    
                    
SbBool               hasVolume()    
void    
                    
void                 getSpan(SbVec3f &dir, float &dMin, float &dMax)    
void    
                    
void                 transform(const SbMatrix &mx)    
float    
                    
float                getVolume()

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).

METHODS

       
                    
                     SbBox3f()    
   
                    
                     SbBox3f(float xmin, float ymin, float zmin float xmax, float ymax, float zmax)    
   
                    
                     SbBox3f(const SbVec3f &min, const SbVec3f &max)    
void    
                    
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.

    const SbVec3f &    
                    
const SbVec3f &      getMin()    
const SbVec3f &    
                    
const SbVec3f &      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.

    SbVec3f    
                    
SbVec3f              getCenter()
Returns the center of the box.

    void    
                    
void                 extendBy(const SbVec3f &point)    
void    
                    
void                 extendBy(const SbBox3f &box)
Extends this box (if necessary) to contain the specified point or other box.

    SbBool    
                    
SbBool               intersect(const SbVec3f &point)    
SbBool    
                    
SbBool               intersect(const SbBox3f &box)
Returns TRUE if the specified point or box intersects this box.

    void    
                    
void                 setBounds(float xmin, float ymin, float zmin, float xmax, float ymax, float zmax)    
void    
                    
void                 setBounds(const SbVec3f &min, const SbVec3f &max)
Sets the corners of the box.

    void    
                    
void                 getBounds(float &xmin, float &ymin, float &zmin, float &xmax, float &ymax, float &zmax)    
void    
                    
void                 getBounds(SbVec3f &min, SbVec3f &max)
Gets the corners of the box.

    void    
                    
void                 getOrigin(float &x0, float &y0, float &z0)
Gets box origin which is the same as the minimum corner of the box.

    void    
                    
void                 getSize(float &x, float &y, float &z)
Gets box size.

    void    
                    
void                 makeEmpty()
Makes an empty box.

    SbBool    
                    
SbBool               isEmpty()
Returns TRUE if the box is empty, and FALSE otherwise.

    SbBool    
                    
SbBool               hasVolume()
Returns TRUE if all three dimensions of the box have positive size, and FALSE otherwise.

    void    
                    
void                 getSpan(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.

    void    
                    
void                 transform(const SbMatrix &mx)
Transforms box by matrix, enlarging box to contain result.

    float    
                    
float                getVolume()
Returns the volume of the box.

FILE FORMAT/DEFAULTS

SEE ALSO

SbXfBox3f, SbBox2f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix, SoGetBoundingBoxAction

Search for    or go to Top of page |  Section 3 |  Main Index


SBBOX3F(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.