slot()
Draws a slot with the given length and end radius.
Returns: Slot
Signatures
slot(distance: NumberParam, radius: NumberParam): Slot
Draws a slot with the given length and end radius.
| Parameter | Type | Description |
|---|---|---|
distance | NumberParam | The slot length |
radius | NumberParam | The end cap radius |
slot(start: Point2DLike, distance: NumberParam, radius: NumberParam): Slot
Draws a slot from a start point with the given length and end radius.
| Parameter | Type | Description |
|---|---|---|
start | Point2DLike | The start point |
distance | NumberParam | The slot length |
radius | NumberParam | The end cap radius |
slot(start: Point2DLike, end: Point2DLike, radius: number): Slot
Draws a slot between two cap-center points with the given radius.
| Parameter | Type | Description |
|---|---|---|
start | Point2DLike | Center of the first cap |
end | Point2DLike | Center of the second cap |
radius | number | The end cap radius |
slot(geometry: SceneObject, radius: NumberParam, deleteSource?: BooleanParam): Slot
Creates a slot from a geometry edge with the given radius.
| Parameter | Type | Description |
|---|---|---|
geometry | SceneObject | The source geometry edge |
radius | NumberParam | The end cap radius |
deleteSource | BooleanParam | Whether to delete the source geometry (defaults to true) (optional) |