Skip to main content

Slot

Extends ExtrudableGeometry

Inherited from Geometry

start()

start(): Vertex

Returns a lazy-evaluated vertex at the start point of this geometry element.

Returns: Vertex


end()

end(): Vertex

Returns a lazy-evaluated vertex at the end point of this geometry element.

Returns: Vertex


tangent()

tangent(): Vertex

Returns a lazy-evaluated vertex representing the tangent direction at the end of this geometry. Used to determine the direction of subsequent geometry elements.

Returns: Vertex

Inherited from SceneObject

name()

name(value: string): this

Sets a custom display name for this object, overriding the default type-based name.

ParameterTypeDescription
valuestringThe display name to assign.

guide()

guide(): this

Marks this object as construction geometry. Guide objects are excluded from final geometry output unless explicitly included.


reusable()

reusable(): this

Marks this object as reusable. Reusable objects retain their shapes when consumed by features (e.g., extrude, revolve), allowing multiple features to reference the same source geometry. Use remove(obj) to force-remove shapes from a reusable object.

Methods

centered()

centered(value?: boolean): this

Controls whether the slot is centered on the current position. When true, the slot is offset backward by half its length.

ParameterTypeDescription
valuebooleantrue to center, false (default) to start from the current position. (optional)

rotate()

rotate(angle: number): this

Sets the rotation angle of the slot's primary axis.

ParameterTypeDescription
anglenumberRotation in degrees.