hull module#
Convex hulls of board elements#
A ConvexHull is a shape defined by board elements rather than
coordinates: the runtime evaluates it to the convex hull of the elements’
copper, and re-evaluates it when they move.
- class ConvexHull(anchors, expand=None, *, evaluated=None)[source]#
Bases:
ShapeGeometryThe convex hull of board elements, evaluated by the runtime.
For now only accepted by interactive region requests (
region()); a feature in code can’t use it yet.>>> rd.layout.region(KeepOut(ConvexHull([u1, j1.p[1]], expand=0.5), ... LayerSet(0), pour=True))
- Parameters:
- to_primitive()[source]#
The evaluated hull.
- Raises:
ValueError – if the runtime has not evaluated the hull.
- Return type: