G-code Preview — API Reference
    Preparing search index...

    Machine/bed geometry discovered from a file (DD-005 §4.2, amendment 2). Never fabricated: absent means unknown, and consumers must not invent one.

    interface MachineGeometry {
        bed:
            | { kind: "rect"; max: Point2; min: Point2 }
            | { center: Point2; diameter: number; kind: "circular" }
            | { kind: "polygon"; points: Point2[] };
        confidence: Confidence;
        excludedRegions?: Region2[];
        heightMm?: number;
        origin: Point2;
        printerName?: string;
        source: { adapterId: string; evidence: string; srcByte?: number };
    }
    Index

    Properties

    bed:
        | { kind: "rect"; max: Point2; min: Point2 }
        | { center: Point2; diameter: number; kind: "circular" }
        | { kind: "polygon"; points: Point2[] }
    confidence: Confidence

    'known' from container/config data; 'inferred' from slicer comments.

    excludedRegions?: Region2[]

    Regions the toolhead must avoid (Klipper excludes, Bambu excluded areas).

    heightMm?: number
    origin: Point2

    Printer-coordinate origin location — explicit, not a convention flag.

    printerName?: string
    source: { adapterId: string; evidence: string; srcByte?: number }

    Provenance: which adapter concluded this, from what evidence.