Skip to main content

Class: Sketches

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

Constructors​

Constructor​

new Sketches(sketches): Sketches;

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

Parameters​

sketches​

(Sketch | CompoundSketch)[]

Returns​

Sketches

Properties​

sketches​

sketches: (Sketch | CompoundSketch)[];

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

Methods​

extrude()​

extrude(extrusionDistance, extrusionConfig?): AnyShape;

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

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


extrudeUntil()​

extrudeUntil(limitingFace, extrusionConfig?): Shape3D;

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

Extrudes each sketch up to the same limiting face, returning only the extrusions. The face is not consumed. Each sketch uses its default direction unless overridden and is consumed when its extrusion succeeds.

Parameters​

limitingFace​

Face

extrusionConfig?​

ExtrudeUntilOptions = {}

Returns​

Shape3D


faces()​

faces(): AnyShape;

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

Returns​

AnyShape


revolve()​

revolve(revolutionAxis?, config?): AnyShape;

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

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

Parameters​

revolutionAxis?​

Point | "X" | "Y" | "Z" | "-X" | "-Y" | "-Z"

config?​
angle?​

number

origin?​

Point

Returns​

AnyShape


wires()​

wires(): AnyShape;

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

Returns​

AnyShape