Skip to main content

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.

ParameterTypeDescription
distancenumberThe slot length
radiusnumberThe 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.

ParameterTypeDescription
startPoint2DLikeThe start point
distancenumberThe slot length
radiusnumberThe end cap radius

slot(geometry: SceneObject, radius: number, deleteSource?: boolean): Slot

Creates a slot from a geometry edge with the given radius.

ParameterTypeDescription
geometrySceneObjectThe source geometry edge
radiusnumberThe end cap radius
deleteSourcebooleanWhether 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.