A CSG Cylinder shape.
    public class CSGCylinder : CSGPrimitive

This node allows you to create a cylinder (or cone) for use with the CSG system.

Inheritance Chain

Constructors

    public CSGCylinder()

Properties

    public bool Cone { get; set; }

If true a cone is created, the Radius will only apply to one side.

    public float Height { get; set; }

The height of the cylinder.

    public Material Material { get; set; }

The material used to render the cylinder.

    public float Radius { get; set; }

The radius of the cylinder.

    public int Sides { get; set; }

The number of sides of the cylinder, the higher this number the more detail there will be in the cylinder.

    public bool SmoothFaces { get; set; }

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

Methods

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

Getter for Height

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

Getter for Material

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

Getter for Radius

    [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("IsCone is deprecated. Use the Cone property instead.")]
    public bool IsCone()

Getter for Cone

    [Obsolete("SetCone is deprecated. Use the Cone property instead.")]
    public void SetCone(bool cone)

Setter for Cone

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

Setter for Height

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

Setter for Material

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

Setter for Radius

    [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: