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(targetPlane: SceneObject | PlaneLike, distance: number, radius: number): Slot

Draws a slot on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
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)

slot(targetPlane: SceneObject | PlaneLike, geometry: SceneObject, radius: number): Slot

Creates a slot from a geometry edge on a specific plane.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
geometrySceneObjectThe source geometry edge
radiusnumberThe 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.

ParameterTypeDescription
targetPlaneSceneObject | PlaneLikeThe plane to draw on
geometrySceneObjectThe source geometry edge
radiusnumberThe end cap radius
deleteSourcebooleanWhether to delete the source geometry