Skip to main content

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.

ParameterTypeDescription
distanceNumberParamThe slot length
radiusNumberParamThe 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.

ParameterTypeDescription
startPoint2DLikeThe start point
distanceNumberParamThe slot length
radiusNumberParamThe end cap radius

slot(start: Point2DLike, end: Point2DLike, radius: number): Slot

Draws a slot between two cap-center points with the given radius.

ParameterTypeDescription
startPoint2DLikeCenter of the first cap
endPoint2DLikeCenter of the second cap
radiusnumberThe end cap radius

slot(geometry: SceneObject, radius: NumberParam, deleteSource?: BooleanParam): Slot

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

ParameterTypeDescription
geometrySceneObjectThe source geometry edge
radiusNumberParamThe end cap radius
deleteSourceBooleanParamWhether to delete the source geometry (defaults to true) (optional)