Generate an axis-aligned cuboid PrimitiveMesh.
    public class CubeMesh : PrimitiveMesh

Generate an axis-aligned cuboid PrimitiveMesh.

Inheritance Chain

Constructors

    public CubeMesh()

Properties

    public Vector3 Size { get; set; }

Size of the cuboid mesh. Defaults to (2, 2, 2).

    public int SubdivideDepth { get; set; }

Number of extra edge loops inserted along the z-axis. Defaults to 0.

    public int SubdivideHeight { get; set; }

Number of extra edge loops inserted along the y-axis. Defaults to 0.

    public int SubdivideWidth { get; set; }

Number of extra edge loops inserted along the x-axis. Defaults to 0.

Methods

    public Vector3 GetSize()

Getter for Size

    public int GetSubdivideDepth()

Getter for SubdivideDepth

    public int GetSubdivideHeight()

Getter for SubdivideHeight

    public int GetSubdivideWidth()

Getter for SubdivideWidth

    public void SetSize(Vector3 size)

Setter for Size

    public void SetSubdivideDepth(int divisions)

Setter for SubdivideDepth

    public void SetSubdivideHeight(int divisions)

Setter for SubdivideHeight

    public void SetSubdivideWidth(int subdivide)

Setter for SubdivideWidth

Tags: