Skip to main content

Class: Sketches

Defined in: packages/replicad/src/sketches/Sketches.ts:9

Constructors​

Constructor​

new Sketches(sketches): Sketches;

Defined in: packages/replicad/src/sketches/Sketches.ts:12

Parameters​

sketches​

(Sketch | CompoundSketch)[]

Returns​

Sketches

Properties​

sketches​

sketches: (Sketch | CompoundSketch)[];

Defined in: packages/replicad/src/sketches/Sketches.ts:10

Methods​

extrude()​

extrude(extrusionDistance, extrusionConfig?): AnyShape;

Defined in: packages/replicad/src/sketches/Sketches.ts:38

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​

extrusionDistance​

number

extrusionConfig?​
extrusionDirection?​

Point

extrusionProfile?​

ExtrusionProfile

origin?​

Point

twistAngle?​

number

Returns​

AnyShape


faces()​

faces(): AnyShape;

Defined in: packages/replicad/src/sketches/Sketches.ts:23

Returns​

AnyShape


revolve()​

revolve(revolutionAxis?, config?): AnyShape;

Defined in: packages/replicad/src/sketches/Sketches.ts:58

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

Parameters​

revolutionAxis?​

Point

config?​
angle?​

number

origin?​

Point

Returns​

AnyShape


wires()​

wires(): AnyShape;

Defined in: packages/replicad/src/sketches/Sketches.ts:16

Returns​

AnyShape