Class representing a spherical PrimitiveMesh.
    public class SphereMesh : PrimitiveMesh

Class representing a spherical PrimitiveMesh.

Inheritance Chain

Constructors

    public SphereMesh()

Properties

    public float Height { get; set; }

Full height of the sphere.

    public bool IsHemisphere { get; set; }

Determines whether a full sphere or a hemisphere is created.

Note: To get a regular hemisphere, the height and radius of the sphere must be equal.

    public int RadialSegments { get; set; }

Number of radial segments on the sphere.

    public float Radius { get; set; }

Radius of sphere.

    public int Rings { get; set; }

Number of segments along the height of the sphere.

Methods

    [Obsolete("GetHeight is deprecated. Use the Height property instead.")]
    public float GetHeight()

Getter for Height

    [Obsolete("GetIsHemisphere is deprecated. Use the IsHemisphere property instead.")]
    public bool GetIsHemisphere()

Getter for IsHemisphere

    [Obsolete("GetRadialSegments is deprecated. Use the RadialSegments property instead.")]
    public int GetRadialSegments()

Getter for RadialSegments

    [Obsolete("GetRadius is deprecated. Use the Radius property instead.")]
    public float GetRadius()

Getter for Radius

    [Obsolete("GetRings is deprecated. Use the Rings property instead.")]
    public int GetRings()

Getter for Rings

    [Obsolete("SetHeight is deprecated. Use the Height property instead.")]
    public void SetHeight(float height)

Setter for Height

    [Obsolete("SetIsHemisphere is deprecated. Use the IsHemisphere property instead.")]
    public void SetIsHemisphere(bool isHemisphere)

Setter for IsHemisphere

    [Obsolete("SetRadialSegments is deprecated. Use the RadialSegments property instead.")]
    public void SetRadialSegments(int radialSegments)

Setter for RadialSegments

    [Obsolete("SetRadius is deprecated. Use the Radius property instead.")]
    public void SetRadius(float radius)

Setter for Radius

    [Obsolete("SetRings is deprecated. Use the Rings property instead.")]
    public void SetRings(int rings)

Setter for Rings

Tags: