Constructor
new Sketch(planeopt)
Creates a new Sketch on the given plane.
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
plane | Plane | <optional> | Plane.XY | The sketch plane. |
- Source
Members
pointer
Returns the current pointer position.
- Source
Methods
bezierCurveTo(points) → {Sketch}
Adds a Bezier curve from the pointer through the given points.
Name | Type | Description |
---|---|---|
points | Array.<Vector> | Control points (excluding start). |
- Source
The current Sketch
instance.
- Type:
- Sketch
line(offset) → {Sketch}
Adds a line from the pointer by the given offset.
Name | Type | Description |
---|---|---|
offset | Vector | The offset vector. |
- Source
The current Sketch
instance.
- Type:
- Sketch
lineAtAngle(params) → {Sketch}
Adds a line at a given angle and length from the pointer.
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params | Object | Parameters. Properties
|
- Source
The current Sketch
instance.
- Type:
- Sketch
lineTo(point) → {Sketch}
Adds a line from the current pointer to the given point.
Name | Type | Description |
---|---|---|
point | Vector | The end point of the line. |
- Source
The current Sketch
instance.
- Type:
- Sketch
movePointerTo(point) → {Sketch}
Moves the pointer to a given point (only if no edges exist).
Name | Type | Description |
---|---|---|
point | Vector | The new pointer position. |
- Source
The current Sketch
instance.
- Type:
- Sketch
tangentArc(offset) → {Sketch}
Adds a tangent arc from the pointer by the given offset.
Name | Type | Description |
---|---|---|
offset | Vector | The offset vector. |
- Source
The current Sketch
instance.
- Type:
- Sketch
tangentArcTo(point) → {Sketch}
Adds a tangent arc from the last edge to the given point.
Name | Type | Description |
---|---|---|
point | Vector | The arc end point. |
- Source
The current Sketch
instance.
- Type:
- Sketch
tangentLine(length) → {Sketch}
Adds a line tangent to the last edge, with the given length.
Name | Type | Description |
---|---|---|
length | number | The tangent line length. |
- Source
The current Sketch
instance.
- Type:
- Sketch
threePointsArcTo(params) → {Sketch}
Adds a three-point arc from the pointer, through a point, to an end point.
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
params | Object | Parameters. Properties
|
- Source
The current Sketch
instance.
- Type:
- Sketch
toFace() → {Face}
Converts the sketch to a planar face.
- Source
The resulting Face
.
- Type:
- Face
toWire() → {Wire}
Converts the sketch to a Wire.
- Source
The resulting Wire
.
- Type:
- Wire