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 thickness around the volumes in volume group with name group_name. The newly created padding volume will be named group_name + padding_suffix and clipped horizontally by the currently selected shapes unless noclip is True.

Parameters:
  • group – The group(s) to pad. See get_group for 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 is False.

  • polygonize – If True, the newly created volumes will be recreated from their hull meshes to avoid problems with curved OpenCASCADE solids (default is True).

builder/gallery/figs/padding/before_padding.svg

Before the padding operation.

builder/gallery/figs/padding/final.svg

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.

builder/gallery/figs/padding/padding_removed.svg

As above, but with the padding volume hidden.

Code to produce the figure.

../../../examples/padding/generate_mesh.py