Available Devicegen Operations
This page lists the available constructive operations of
qtcad.builder.Builder along with visualizations of their
effects.
- Builder.pad_volume(group: GroupSpecifier, thickness: float, padding_suffix: str = '_padding', noclip: bool = False, polygonize: bool = True) Self
[🏗️ Operation] Add a padding layer of
thicknessaround the volumes in volume group with namegroup_name. The newly created padding volume will be namedgroup_name + padding_suffixand clipped horizontally by the currently selected shapes unlessnoclipisTrue.- Parameters:
group – The group(s) to pad. See
get_groupfor details on the allowed types.thickness – The padding thickness.
padding_suffix – Suffix to append to the group name for the new volume.
noclip – If
True, no horizontal clipping will occur. Default isFalse.polygonize – If
True, the newly created volumes will be recreated from their hull meshes to avoid problems with curved OpenCASCADE solids (default isTrue).
Before the padding operation.
After the padding operation. Note that the upper volume was padded with
noclip=True, whereas the lower one was clipped to the footprint of the device.As above, but with the padding volume hidden.
Code to produce the figure.
../../../examples/padding/generate_mesh.py