Class SoAlgebraicSphere

  • All Implemented Interfaces:

    public class SoAlgebraicSphere
    extends SoAlgebraicShape
    Algebraic sphere shape node. This node represents a sphere. By default, the sphere is centered at the origin and has a radius of 1.

    The sphere 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 SoSphere 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.

    File format/default:

    AlgebraicSphere {

      radius 1

    See Also:
    SoAlgebraicShape, SoMultipleInstance, SoSphere
    • Field Detail

      • radius

        public final SoSFFloat radius
        Radius of sphere. This must be greater than 0. Default is 1.
    • Constructor Detail

      • SoAlgebraicSphere

        public SoAlgebraicSphere()
        Default constructor.