kicad2ems.fem.geometry

The board's copper, pads and vias as shapely pieces (mm), from kicad2ems's
board.json dict, shared by the solvers.

    load_board(path, nets)         # board.json's dict: a .kicad_pcb through
                                   # kicad2ems, or a <name>_board.json
    copper_of(board, nets, layer)  # one shapely geometry, or None
    polygons(geom, tol)            # its polygons, simplified to tol mm, slivers
                                   # and tiny holes dropped
    pads_of(board, ref, nets)      # [(layer, polygon)]: a part's pads on those
                                   # nets (through-hole: every layer)
    part_copper(board, ref, keep)  # the same of the pads keep(pad) passes
    slab(board, layer)             # (bottom, top) z of a copper layer's
                                   # thickness, mm
kicad2ems.fem.geometry.load_board(path, nets=None)[source]
board.json's dict from a .kicad_pcb (through kicad2ems; only `nets` when
given) or a kicad2ems board.json.
kicad2ems.fem.geometry.pads_of(board, ref, nets)[source]
part_copper of part `ref`'s pads on `nets`.
kicad2ems.fem.geometry.part_copper(board, ref, keep)[source]
[(layer, polygon)] of part `ref`'s pads that keep(pad) passes: an SMD pad
on its layer, a through-hole one (*.Cu or several layers) on every copper
layer.
kicad2ems.fem.geometry.polygons(g, tol=0.0)[source]
The polygons of a shapely geometry; tol > 0 simplifies them (mm) and
drops tiny holes and slivers (real copper's near-duplicate vertices
otherwise break 3D meshing).
kicad2ems.fem.geometry.slab(board, layer)[source]
(bottom, top) z of a copper layer's slab, mm: board.json's copper is a
sheet at z with thickness t; the outer layers grow outward, the inner ones
upward.