Preview helpers
Set of preview helpers used during development.
They are not meant to be part of the public API.
assemble
Source code in src/bd_tube_boxes/preview_helpers.py
clip
rectangle_canister_assembly
Creates all parts placed in the right location and returns them as a dict.
This is only interesting for generating previews as the tube, positions and rotations are not interesting for printing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tube_height
|
float
|
Tube height |
required |
model
|
RectangleCanisterBase
|
Rectangle canister variant |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
dict[str, Any]: A dict with the Canister object, tube, top cap, bottom cap and lid |
Source code in src/bd_tube_boxes/preview_helpers.py
rounded_canister_assembly
Creates all parts placed in the right location and returns them as a dict.
This is only interesting for generating previews as the tube, positions and rotations are not interesting for printing.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tube_height (float) Tube height
|
|
required | |
model
|
RoundedCanisterBase
|
Rounded canister variant |
required |
Returns:
Type | Description |
---|---|
dict[str, Any]
|
dict[str, Any]: A dict with the tube, top cap, bottom cap and lid |