extrude

fun extrude(path: Path, height: Double = 1.0): Shape

Extrudes a 2D Path along the z-axis to create a 3D shape.

The resulting shape contains a bottom face, a top face, and one side face per edge of the original path.

Parameters

path

The 2D base polygon to extrude

height

The distance to extrude along the z-axis (default 1.0)