Skip to main content

part()

Defines a reusable part with a name and a callback containing the geometry.

Returns: PartHandle

tip

See the guide for detailed usage examples.

Signatures

part(name: string, callback: (options: T) => void): PartHandle

Defines a reusable part with a name and a callback containing the geometry.

ParameterTypeDescription
namestringThe part name.
callback(options: T) => voidCallback containing the part geometry.