Skip to main content

Class: Sketch

Implements

Constructors

constructor

new Sketch(wire, __namedParameters?)

Parameters

NameType
wireWire
__namedParametersObject
__namedParameters.defaultDirection?Point
__namedParameters.defaultOrigin?Point

Defined in

sketches/Sketch.ts:39

Properties

wire

wire: Wire

Defined in

sketches/Sketch.ts:27

Accessors

baseFace

get baseFace(): undefined | null | Face

Returns

undefined | null | Face

Defined in

sketches/Sketch.ts:55

set baseFace(newFace): void

Parameters

NameType
newFaceundefined | null | Face

Returns

void

Defined in

sketches/Sketch.ts:59


defaultDirection

get defaultDirection(): Vector

Returns

Vector

Defined in

sketches/Sketch.ts:88

set defaultDirection(newDirection): void

Parameters

NameType
newDirectionPoint

Returns

void

Defined in

sketches/Sketch.ts:92


defaultOrigin

get defaultOrigin(): Vector

Returns

Vector

Defined in

sketches/Sketch.ts:80

set defaultOrigin(newOrigin): void

Parameters

NameType
newOriginPoint

Returns

void

Defined in

sketches/Sketch.ts:84

Methods

clone

clone(): Sketch

Returns

Sketch

Defined in

sketches/Sketch.ts:71


delete

delete(): void

Returns

void

Defined in

sketches/Sketch.ts:64


extrude

extrude(extrusionDistance, __namedParameters?): Shape3D

Parameters

NameType
extrusionDistancenumber
__namedParametersObject
__namedParameters.extrusionDirection?Point
__namedParameters.extrusionProfile?ExtrusionProfile
__namedParameters.origin?Point
__namedParameters.twistAngle?number

Returns

Shape3D

Implementation of

SketchInterface.extrude

Defined in

sketches/Sketch.ts:146


face

face(): Face

Returns

Face

Implementation of

SketchInterface.face

Defined in

sketches/Sketch.ts:99


faces

faces(): Face

Returns

Face

Defined in

sketches/Sketch.ts:113


loftWith

loftWith(otherSketches, loftConfig?, returnShell?): Shape3D

Parameters

NameTypeDefault value
otherSketchesSketch | Sketch[]undefined
loftConfigLoftConfig{}
returnShellbooleanfalse

Returns

Shape3D

Implementation of

SketchInterface.loftWith

Defined in

sketches/Sketch.ts:243


revolve

revolve(revolutionAxis?, __namedParameters?): Shape3D

Parameters

NameType
revolutionAxis?Point
__namedParametersObject
__namedParameters.origin?Point

Returns

Shape3D

Implementation of

SketchInterface.revolve

Defined in

sketches/Sketch.ts:121


sweepSketch

sweepSketch(sketchOnPlane, sweepConfig?): Shape3D

Parameters

NameType
sketchOnPlane(plane: Plane, origin: Point) => Sketch
sweepConfigGenericSweepConfig

Returns

Shape3D

Defined in

sketches/Sketch.ts:208


wires

wires(): Wire

Returns

Wire

Defined in

sketches/Sketch.ts:109