1SbSphere(3IV)()                                                SbSphere(3IV)()
2
3
4

NAME

6       SbSphere — class for representing a sphere
7

INHERITS FROM

9       SbSphere
10

SYNOPSIS

12       #include <Inventor/SbLinear.h>
13
14          Methods from class SbSphere:
15
16                         SbSphere()
17                         SbSphere(const SbVec3f &center, float radius)
18     void                setValue(const SbVec3f &center, float radius)
19     void                setCenter(const SbVec3f &center)
20     void                setRadius(float radius)
21     const SbVec3f &     getCenter() const
22     float               getRadius() const
23     void                circumscribe(const SbBox3f &box)
24     SbBool              intersect(const  SbLine  &l,  SbVec3f  &intersection)
25                              const
26     SbBool              intersect(const SbLine &l,  SbVec3f  &enter,  SbVec3f
27                              &exit) const
28
29

DESCRIPTION

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

METHODS

36                         SbSphere()
37                         SbSphere(const SbVec3f &center, float radius)
38          Constructors.
39
40     void                setValue(const SbVec3f &center, float radius)
41          Change the center and radius.
42
43     void                setCenter(const SbVec3f &center)
44     void                setRadius(float radius)
45          Set just the center or radius.
46
47     const SbVec3f &     getCenter() const
48     float               getRadius() const
49          Return the center and radius.
50
51     void                circumscribe(const SbBox3f &box)
52          Return a sphere containing a given box.
53
54     SbBool              intersect(const  SbLine  &l,  SbVec3f  &intersection)
55                              const
56     SbBool              intersect(const SbLine &l,  SbVec3f  &enter,  SbVec3f
57                              &exit) const
58          Intersect  line  and sphere, returning TRUE if there is an intersec‐
59          tion. The line is treated as a ray.
60
61

SEE ALSO

63       SbVec3f, SbLine, SoSphere
64
65
66
67
68                                                               SbSphere(3IV)()
Impressum