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(targetPlane: SceneObject | PlaneLike, distance: number, radius: number): Slot
Draws a slot on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
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) |
slot(targetPlane: SceneObject | PlaneLike, geometry: SceneObject, radius: number): Slot
Creates a slot from a geometry edge on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
geometry | SceneObject | The source geometry edge |
radius | number | The end cap radius |
slot(targetPlane: SceneObject | PlaneLike, geometry: SceneObject, radius: number, deleteSource: boolean): Slot
Creates a slot from a geometry edge, optionally keeping the source, on a specific plane.
| Parameter | Type | Description |
|---|---|---|
targetPlane | SceneObject | PlaneLike | The plane to draw on |
geometry | SceneObject | The source geometry edge |
radius | number | The end cap radius |
deleteSource | boolean | Whether to delete the source geometry |