outline module#
The board profile, and the holes that are not pads.
A JITX Cutout outside a pad is a physical hole in the board. A circular one becomes a non-plated mechanical drill hit, which is what a fabricator expects for a mounting hole; any other shape becomes an inner contour of the profile.
The profile file is stroked, not filled: it images the board edge rather than the board. Profile,NP throughout, since JITX has no edge-plating concept.
- PROFILE_WIDTH = 0.05#
The stroke width the reference export uses for an edge cut, %ADD10C, 0.050000*%. A zero-size aperture is only ever the unused current aperture for a region, never a stroke.
- class Outline(file, npth, bounds)[source]#
Bases:
objectThe profile file and the board holes that are drilled instead.
- file: GerberFile#
- build(design)[source]#
The profile file, the non-plated board holes, and the board extent.
- Return type:
- Parameters:
design (RuntimeDesign)
- add_cutouts(outline, islands)[source]#
Stroke general-shaped pad cutouts into the profile.
They arrive after the profile is built because they are found by the pad walk, which needs the layer model and the component index the profile does not. Same treatment as a board cutout of a general shape: the cutout’s outer ring is a hole in the board, so it is wound as one.