A CSG Sphere shape.
    public class CSGSphere : CSGPrimitive

This node allows you to create a sphere for use with the CSG system.

Inheritance Chain


    public CSGSphere()


    public Material Material { get; set; }

The material used to render the sphere.

    public int RadialSegments { get; set; }

Number of vertical slices for the sphere.

    public float Radius { get; set; }

Radius of the sphere.

    public int Rings { get; set; }

Number of horizontal slices for the sphere.

    public bool SmoothFaces { get; set; }

If true the normals of the sphere are set to give a smooth effect making the sphere seem rounded. When false the sphere will have a flat shaded look.


    public Material GetMaterial()

Getter for Material

    public int GetRadialSegments()

Getter for RadialSegments

    public float GetRadius()

Getter for Radius

    public int GetRings()

Getter for Rings

    public bool GetSmoothFaces()

Getter for SmoothFaces

    public void SetMaterial(Material material)

Setter for Material

    public void SetRadialSegments(int radialSegments)

Setter for RadialSegments

    public void SetRadius(float radius)

Setter for Radius

    public void SetRings(int rings)

Setter for Rings

    public void SetSmoothFaces(bool smoothFaces)

Setter for SmoothFaces