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.
| Parameter | Type | Description |
|---|---|---|
name | string | The part name. |
callback | (options: T) => void | Callback containing the part geometry. |