extrude

open fun extrude(height: Double): Extrusion

Extrude a 2D shape upwards (in the Z direction) to form a 3D shape (an extrusion).

You can taper the extrusion by calling Extrusion.extrusionScale.

For more complex extrusions, use ExtrusionBuilder instead.


open fun extrude(height: Double, scale: Double): Extrusion
open fun extrude(height: Double, scale: Vector2): Extrusion
open fun extrude(alongPath: Path3d): Polyhedron
open fun extrude(alongPath: Path3d, autoScale: Boolean, convexity: Int?): Polyhedron
open fun extrude(alongPath: Path2d): Polyhedron
open fun extrude(alongPath: Path2d, autoScale: Boolean): Polyhedron
open fun extrude(alongPath: Path2d, autoScale: Boolean, convexity: Int?): Polyhedron
open fun extrude(aroundShape: Shape2d): Shape3d


open fun extrude(alongPath: Path3d, autoScale: Boolean): Polyhedron

Extrude this 2D shape along a 3D path.

Parameters

alongPath

The path the follow

autoScale

Should this profile be scaled, so that the cross section remains constant.


open fun extrude(aroundShape: Shape2d, autoScale: Boolean): Shape3d
open fun extrude(aroundShape: Shape2d, autoScale: Boolean, convexity: Int?): Shape3d

Extrude this 2D shape around the edge of another Shape2d (aroundShape).

Parameters

aroundShape

The 2D path to follow

autoScale

Should this profile be scaled, so that the cross section remains constant.