A CSG Torus shape.
    public class CSGTorus : CSGPrimitive

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

Inheritance Chain

Constructors

    public CSGTorus()

Properties

    public float InnerRadius { get; set; }

The inner radius of the torus.

    public Material Material { get; set; }

The material used to render the torus.

    public float OuterRadius { get; set; }

The outer radius of the torus.

    public int RingSides { get; set; }

The number of edges each ring of the torus is constructed of.

    public int Sides { get; set; }

The number of slices the torus is constructed of.

    public bool SmoothFaces { get; set; }

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

Methods

    [Obsolete("GetInnerRadius is deprecated. Use the InnerRadius property instead.")]
    public float GetInnerRadius()

Getter for InnerRadius

    [Obsolete("GetMaterial is deprecated. Use the Material property instead.")]
    public Material GetMaterial()

Getter for Material

    [Obsolete("GetOuterRadius is deprecated. Use the OuterRadius property instead.")]
    public float GetOuterRadius()

Getter for OuterRadius

    [Obsolete("GetRingSides is deprecated. Use the RingSides property instead.")]
    public int GetRingSides()

Getter for RingSides

    [Obsolete("GetSides is deprecated. Use the Sides property instead.")]
    public int GetSides()

Getter for Sides

    [Obsolete("GetSmoothFaces is deprecated. Use the SmoothFaces property instead.")]
    public bool GetSmoothFaces()

Getter for SmoothFaces

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

Setter for InnerRadius

    [Obsolete("SetMaterial is deprecated. Use the Material property instead.")]
    public void SetMaterial(Material material)

Setter for Material

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

Setter for OuterRadius

    [Obsolete("SetRingSides is deprecated. Use the RingSides property instead.")]
    public void SetRingSides(int sides)

Setter for RingSides

    [Obsolete("SetSides is deprecated. Use the Sides property instead.")]
    public void SetSides(int sides)

Setter for Sides

    [Obsolete("SetSmoothFaces is deprecated. Use the SmoothFaces property instead.")]
    public void SetSmoothFaces(bool smoothFaces)

Setter for SmoothFaces

Tags: