Skip to main content

Class: CompoundSketch

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:117

A group of sketches that should correspond to a unique face (i.e. an outer sketch, and multiple holes within this sketch.

All the sketches should share the same base face (or surface)

Ideally generated from a CompoundBlueprint

Implements​

Constructors​

Constructor​

new CompoundSketch(sketches): CompoundSketch;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:119

Parameters​

sketches​

Sketch[]

Returns​

CompoundSketch

Properties​

sketches​

sketches: Sketch[];

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:118

Accessors​

innerSketches​

Get Signature​

get innerSketches(): Sketch[];

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:131

Returns​

Sketch[]


outerSketch​

Get Signature​

get outerSketch(): Sketch;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:127

Returns​

Sketch


wires​

Get Signature​

get wires(): AnyShape;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:135

Returns​

AnyShape

Methods​

delete()​

delete(): void;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:123

Returns​

void


extrude()​

extrude(extrusionDistance, __namedParameters?): Shape3D;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:176

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

__namedParameters?​
extrusionDirection?​

Point

extrusionProfile?​

ExtrusionProfile

origin?​

Point

twistAngle?​

number

Returns​

Shape3D

Implementation of​

SketchInterface.extrude


extrudeUntil()​

extrudeUntil(limitingFace, __namedParameters?): Shape3D;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:158

Extrudes this sketch up to a limiting face, returning only the new solid. The face is not modified or consumed. The sketch's default direction is used unless overridden; the reverse direction is tried if needed. The finite, trimmed limiting face must fully cap the extrusion once without crossing the profile. Use a trimmed face for closed surfaces. The sketch is consumed on success, but retained on failure.

Parameters​

limitingFace​

Face

__namedParameters?​

ExtrudeUntilOptions = {}

Returns​

Shape3D

Implementation of​

SketchInterface.extrudeUntil


face()​

face(): Face;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:140

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

Returns​

Face

Implementation of​

SketchInterface.face


loftWith()​

loftWith(otherCompound, loftConfig): Shape3D;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:245

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​

otherCompound​

this

loftConfig​

LoftConfig

Returns​

Shape3D

Implementation of​

SketchInterface.loftWith


revolve()​

revolve(revolutionAxis?, __namedParameters?): Shape3D;

Defined in: packages/replicad/src/sketches/CompoundSketch.ts:232

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"

__namedParameters?​
angle?​

number

origin?​

Point

Returns​

Shape3D

Implementation of​

SketchInterface.revolve