Prism

constructor(position: Point = Point.ORIGIN, width: Double = 1.0, depth: Double = 1.0, height: Double = 1.0)

Parameters

position

The minimum-corner origin point of the prism (default Point.ORIGIN)

width

The extent along the x-axis (must be positive, default 1.0)

depth

The extent along the y-axis (must be positive, default 1.0). Note that this is a geometric dimension and is unrelated to Path.depth, which is a sorting metric.

height

The extent along the z-axis (must be positive, default 1.0)