copper module#
Copper and Pour construction#
This module provides classes for representing copper shapes and pours on board layers.
- class Copper(shape, layer)[source]#
Bases:
StructuralCopper element on a layer index.
Represents a copper element with a defined shape on a particular layer index. Can be combined with other copper elements to form nets.
>>> copper = Copper(Circle(diameter=2.0), layer=0)
- shape: jitx.shapes.Shape#
The geometric shape of the copper element.
- layer: int#
The layer index for this copper element.
- class Pour(shape, layer, *, isolate=0, rank=0, orphans=True)[source]#
Bases:
CopperCopper pour is a filled copper element with isolation and priority settings.
>>> self.gnd = Net() >>> self.gnd += Pour(Circle(diameter=10.0), layer=0, rank=1)
- isolate: float#
Isolation distance from other features in millimeters.
- rank: int = 0#
Pour priority rank with higher ranks being prioritized.
- orphans: bool = True#
Whether to include orphaned copper areas.