Skip to content

PrismMesh

Inherits: PrimitiveMesh < Mesh < Resource < RefCounted < Object

Class representing a prism-shaped PrimitiveMesh.

Class representing a prism-shaped PrimitiveMesh.

Type Name Default
float left_to_right 0.5
Vector3 size Vector3(1, 1, 1)
int subdivide_depth 0
int subdivide_height 0
int subdivide_width 0

left_to_right

float left_to_right = 0.5

Displacement of the upper edge along the X axis. 0.0 positions edge straight above the bottom-left edge.

size

Vector3 size = Vector3(1, 1, 1)

Size of the prism.

subdivide_depth

int subdivide_depth = 0

Number of added edge loops along the Z axis.

subdivide_height

int subdivide_height = 0

Number of added edge loops along the Y axis.

subdivide_width

int subdivide_width = 0

Number of added edge loops along the X axis.