Extrude


extrude()

Extrudes the face in a given direction.

Syntax

cadlib.extrude(face, extrudeDirection, offset, holeOffset, altitude);

Parameters

Name Type Description
face Face Face to extrude
extrudeDirection Vec3 direction of the extrusion
offset Number Offset applied to the outer face wire before extrusion
holeOffset Number Offset applied to inner (hole) face wires before extrusion
altitude Number Distance from where extrusion starts. Can be postive or negative

Returns

Solid