Skip to main content

SketchInterface

Implemented by

Methods

extrude

extrude(extrusionDistance, extrusionConfig?): Shape3D

Extrudes the sketch to a certain distance.(along the default direction and origin of the sketch).

You can define another extrusion direction or origin,

It is also possible to twist extrude with an angle (in degrees), or to give a profile to the extrusion (the endFactor will scale the face, and the profile will define how the scale is applied (either linarly or with a s-shape).

Parameters

NameType
extrusionDistancenumber
extrusionConfig?Object
extrusionConfig.extrusionDirection?Point
extrusionConfig.extrusionProfile?ExtrusionProfile
extrusionConfig.origin?Point
extrusionConfig.twistAngle?number

Returns

Shape3D

Defined in

sketches/lib.ts:29


face

face(): Face

Transforms the lines into a face. The lines should be closed.

Returns

Face

Defined in

sketches/lib.ts:10


loftWith

loftWith(otherSketches, loftConfig, returnShell?): Shape3D

Loft between this sketch and another sketch (or an array of them)

You can also define a startPoint for the loft (that will be placed before this sketch) and an endPoint after the last one.

You can also define if you want the loft to result in a ruled surface.

Note that all sketches will be deleted by this operation

Parameters

NameType
otherSketchesSketchInterface | SketchInterface[]
loftConfigLoftConfig
returnShell?boolean

Returns

Shape3D

Defined in

sketches/lib.ts:49


revolve

revolve(revolutionAxis?, config?): Shape3D

Revolves the drawing on an axis (defined by its direction and an origin (defaults to the sketch origin)

Parameters

NameType
revolutionAxis?Point
config?Object
config.origin?Point

Returns

Shape3D

Defined in

sketches/lib.ts:16