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  -  SBSPHERE (3)

NAME

SbSphere — class for representing a sphere

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbSphere

SYNOPSIS

#include <Inventor/SbLinear.h>

Methods from class SbSphere:

       
                    
                     SbSphere()    
   
                    
                     SbSphere(const SbVec3f ¢er, float radius)    
void    
                    
void                 setValue(const SbVec3f ¢er, float radius)    
void    
                    
void                 setCenter(const SbVec3f ¢er)    
void    
                    
void                 setRadius(float radius)    
const SbVec3f &    
                    
const SbVec3f &      getCenter() const    
float    
                    
float                getRadius() const    
void    
                    
void                 circumscribe(const SbBox3f &box)    
SbBool    
                    
SbBool               intersect(const SbLine &l, SbVec3f &intersection) const    
SbBool    
                    
SbBool               intersect(const SbLine &l, SbVec3f &enter, SbVec3f &exit) const

DESCRIPTION

Represents a sphere in 3D. This is a lightweight datatype that is used for arguments or return values in the Inventor toolkit. See SoSphere for a database sphere (used for rendering, picking, etc.).

METHODS

       
                    
                     SbSphere()    
   
                    
                     SbSphere(const SbVec3f ¢er, float radius)
Constructors.

    void    
                    
void                 setValue(const SbVec3f ¢er, float radius)
Change the center and radius.

    void    
                    
void                 setCenter(const SbVec3f ¢er)    
void    
                    
void                 setRadius(float radius)
Set just the center or radius.

    const SbVec3f &    
                    
const SbVec3f &      getCenter() const    
float    
                    
float                getRadius() const
Return the center and radius.

    void    
                    
void                 circumscribe(const SbBox3f &box)
Return a sphere containing a given box.

    SbBool    
                    
SbBool               intersect(const SbLine &l, SbVec3f &intersection) const    
SbBool    
                    
SbBool               intersect(const SbLine &l, SbVec3f &enter, SbVec3f &exit) const
Intersect line and sphere, returning TRUE if there is an intersection. The line is treated as a ray.

FILE FORMAT/DEFAULTS

SEE ALSO

SbVec3f, SbLine, SoSphere

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


SBSPHERE(3IV) (-->)

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