Debian Codegraph @

doc/man/man3/ivm/nodes/SoSphere.ivm

raw
1 NAME SoSphere "" SO_SPHERE_ { sphere shape node }
2
3 INCLUDE nodes/SoSphere.h
4
5 DESC {
6 This node represents a sphere. By default, the sphere is centered at
7 the origin and has a radius of 1. The sphere is transformed by the
8 current cumulative transformation and is drawn with the current
9 lighting model, drawing style, material, and geometric complexity.
10 \p
11 A sphere does not have faces or parts. Therefore, the sphere ignores
12 material and normal bindings, using the first material for the entire
13 sphere and using its own normals. When a texture is applied to a
14 sphere, the texture covers the entire surface, wrapping
15 counterclockwise from the back of the sphere. The texture has a seam
16 at the back on the yz-plane.
17 }
18
19 FIELD radius { Radius of sphere. This must be greater than 0. }
20
21 METHOD "" SoSphere() {
22 Creates a sphere node with default settings.
23 }
24
25 METHOD "" static SoType getClassTypeId() {
26 Returns type identifier for this class.
27 }
28
29 ACTION SoGLRenderAction {
30 Draws sphere based on the current coordinates, materials,
31 drawing style, and so on.
32 }
33
34 ACTION SoRayPickAction {
35 Intersects the ray with the sphere. No details are created for
36 intersections.
37 }
38
39 ACTION SoGetBoundingBoxAction {
40 Computes the bounding box that encloses the sphere.
41 }
42
43 ACTION SoCallbackAction {
44 If any triangle callbacks are registered with the action, they will
45 be invoked for each successive triangle that approximates the sphere.
46 }
47
48 ALSO { SoCone, SoCube, SoCylinder }