Algebraic cone shape node. More...
#include <Inventor/nodes/SoAlgebraicCone.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
SoAlgebraicCone () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
Public Attributes | |
SoSFFloat | height |
SoSFFloat | radius |
SoSFBool | capped |
This node represents a simple cone whose central axis is aligned with the y-axis. By default, the cone is centered at (0,0,0) and has a size of -1 to +1 in all three directions. The cone has a radius of 1 at the bottom and a height of 2, with its apex at 1.
The cone is transformed by the current cumulative transformation and is drawn with the current lighting model and material.
This node can generally be used in place of the SoCone geometric shape node. Unlike the geometric shape nodes, which create triangle geometry to represent their shape, the algebraic shape nodes compute and render their shape on the GPU. Algebraic shapes can also be used with SoMultipleInstance to efficiently render a very large number of shapes.
Please see SoAlgebraicShape for important notes and limitations for algebraic shapes.
radius | 1 |
height | 2 |
capping | TRUE |
SoAlgebraicShape, SoMultipleInstance, SoCone
SoAlgebraicCone::SoAlgebraicCone | ( | ) |
Default constructor.
static SoType SoAlgebraicCone::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoAlgebraicShape.
virtual SoType SoAlgebraicCone::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoAlgebraicShape.
Specifies if cone is capped or not.
Default is true.
Specifies the cone's height.
Value must be greater than 0.0. Default is 2.
Specifies the radius of the base circle.
Value must be greater than 0.0. Default is 1.