Class representing a prism-shaped PrimitiveMesh.
    public class PrismMesh : PrimitiveMesh

Class representing a prism-shaped PrimitiveMesh.

Inheritance Chain

Constructors

    public PrismMesh()

Properties

    public float LeftToRight { get; set; }

Displacement of the upper edge along the x-axis. 0.0 positions edge straight above the bottome left edge. Defaults to 0.5 (positioned on the midpoint).

    public Vector3 Size { get; set; }

Size of the prism. Defaults to (2.0, 2.0, 2.0).

    public int SubdivideDepth { get; set; }

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

    public int SubdivideHeight { get; set; }

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

    public int SubdivideWidth { get; set; }

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

Methods

    public float GetLeftToRight()

Getter for LeftToRight

    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 SetLeftToRight(float leftToRight)

Setter for LeftToRight

    public void SetSize(Vector3 size)

Setter for Size

    public void SetSubdivideDepth(int segments)

Setter for SubdivideDepth

    public void SetSubdivideHeight(int segments)

Setter for SubdivideHeight

    public void SetSubdivideWidth(int segments)

Setter for SubdivideWidth

Tags: