SbSphere(3iv)

SbSphere3iv

Class for representing a sphere

Usage

#include <Inventor/SbLinear.h>

Methods from class SbSphere:

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

Inherits from

SbSphere

Overview

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 &center, float radius)
Constructors.

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

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

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

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

SbBool intersect(const SbLine &l, SbVec3f &intersection) const
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.

Releases

Unchanged in 9 releases since Debian 3.0 (Woody).

  1. 3.0–13

From inventor-doc 2.1.6+ds-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.