Expand description
Whole-nanometre (i64), +Y-up canonical geometry and fabrication records.
Structs§
- Chamfer
Corners - Chamfered rectangle corner flags (
+Yup). - CoordNm
- Whole-nanometre 2D coordinate (
+Yup). - FabArea
- One filled area item (zone pour, custom pad polygon, filled graphic, text outline).
- FabComponent
- One placed component summary (for PnP, BOM, IPC-2581, and virtual layers).
- FabDrill
Pair - Drill pair span (through, blind, buried, microvia).
- FabHole
- One drilled hole or routed oval slot.
- FabLand
- One flashed pad or via land.
- FabLayer
- Layer descriptor in stackup order.
- FabLayer
Items - All items on one canonical layer.
- FabProfile
- Closed board outline + interior cutouts (
outerCCW,cutoutsCW). - FabStack
Row - Physical stackup row.
- FabStroke
- One swept stroke item (track, graphic line/arc, text glyph stroke).
- Placement2D
- Rigid translation + CCW rotation (
+Yup) in whole nanometres. - Ring2D
- Closed 2D ring in whole nanometres (
+Yup).
Enums§
- Area
Kind - Kind of a filled area item.
- Area
Shape - Analytic 2D area shape (in local coordinates,
+Yup, whole nm). - Land
Kind - Kind of a fabrication land item.
- Land
Role - Role of a flashed pad or via land.
- Layer
Role - Board layer metadata.
- Layer
Side - Board side classification.
- RingSeg
- Closed ring segment kind (straight line or circular arc).
- Stroke
Kind - Kind of a swept stroke item.
- Stroke
Path - Swept line or circular arc path (round caps/joins, whole nm,
+Yup).
Constants§
- DOT_NM
- Maximum stroke centreline length / arc diameter (100 nm) treated as a dot disk,
matching Python
kicad_monkey.fab.geometry.placed.DOT_NM. - MM_
TO_ NM - Millimetres to whole nanometres multiplier.
Functions§
- append_
arc_ interior_ points - Append intermediate chord points along a circular arc (excluding
p0andp1). - circle_
from_ 3pts - Compute circumcircle
((cx, cy), radius, ccw)from 3 points in+Y-up nm. - fp_
local_ to_ board_ mm - Transform footprint-local KiCad mm (
+Ydown) to board-space KiCad mm (+Ydown). - mm_
to_ nm - Convert KiCad millimetres to whole nanometres.
- pt_up
- Convert KiCad board coordinates (
+Ydown, mm) to FabView coordinates (+Yup, whole nm). - signed_
area_ 2x - Twice the signed area of a closed polygon in nm^2.