slot()
Draws a slot with the given length and end radius.
Returns: Slot
Signatures
slot(distance: number, radius: number): Slot
Draws a slot with the given length and end radius.
| Parameter | Type | Description |
|---|---|---|
distance | number | The slot length |
radius | number | The end cap radius |
slot(start: Point2DLike, distance: number, radius: number): Slot
Draws a slot from a start point with the given length and end radius.
| Parameter | Type | Description |
|---|---|---|
start | Point2DLike | The start point |
distance | number | The slot length |
radius | number | The end cap radius |
slot(geometry: SceneObject, radius: number, deleteSource?: boolean): Slot
Creates a slot from a geometry edge with the given radius.
| Parameter | Type | Description |
|---|---|---|
geometry | SceneObject | The source geometry edge |
radius | number | The end cap radius |
deleteSource | boolean | Whether to delete the source geometry (defaults to true) (optional) |
note
All signatures also accept an optional targetPlane parameter as the last argument to draw on a specific plane.