Skip to main content

Sketches

Constructors

constructor

new Sketches(sketches)

Parameters

NameType
sketches(Sketch | CompoundSketch)[]

Defined in

sketches/Sketches.ts:12

Properties

sketches

sketches: (Sketch | CompoundSketch)[]

Defined in

sketches/Sketches.ts:10

Methods

extrude

extrude(extrusionDistance, extrusionConfig?): AnyShape

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
extrusionConfigObject
extrusionConfig.extrusionDirection?Point
extrusionConfig.extrusionProfile?ExtrusionProfile
extrusionConfig.origin?Point
extrusionConfig.twistAngle?number

Returns

AnyShape

Defined in

sketches/Sketches.ts:38


faces

faces(): AnyShape

Returns

AnyShape

Defined in

sketches/Sketches.ts:23


revolve

revolve(revolutionAxis?, config?): AnyShape

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

AnyShape

Defined in

sketches/Sketches.ts:58


wires

wires(): AnyShape

Returns

AnyShape

Defined in

sketches/Sketches.ts:16