man SbSphere () - class for representing a sphere

NAME

SbSphere - class for representing a sphere

INHERITS FROM

SbSphere

SYNOPSIS

#include <Inventor/SbLinear.h> Methods from class SbSphere: c } c } SbSphere()

c } c } SbSphere(const SbVec3f &center, float radius)

c } c } setValue(const SbVec3f &center, float radius)

c } c } setCenter(const SbVec3f &center)

c } c } setRadius(float radius)

c } c } getCenter() const

c } c } getRadius() const

c } c } circumscribe(const SbBox3f &box)

c } c } intersect(const SbLine &l, SbVec3f &intersection) const

c } c } 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

c } c } SbSphere()

c } c } SbSphere(const SbVec3f &center, float radius)

Constructors. c } c } setValue(const SbVec3f &center, float radius)

Change the center and radius. c } c } setCenter(const SbVec3f &center)

c } c } setRadius(float radius)

Set just the center or radius. c } c } getCenter() const

c } c } getRadius() const

Return the center and radius. c } c } circumscribe(const SbBox3f &box)

Return a sphere containing a given box. c } c } intersect(const SbLine &l, SbVec3f &intersection) const

c } c } 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.

SEE ALSO

SbVec3f, SbLine, SoSphere