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)
- 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)