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

    A presentation scene: one or more objects plus capability honesty about what the source carried.

    interface ModelScene {
        bounds: ModelBounds;
        capabilities: {
            instanced: Confidence;
            materials: Confidence;
            multiObject: Confidence;
            plates: Confidence;
            transforms: Confidence;
        };
        objects: ModelObject[];
        plates?: { active?: number; list: ModelPlateSummary[] };
    }
    Index

    Properties

    bounds: ModelBounds
    capabilities: {
        instanced: Confidence;
        materials: Confidence;
        multiObject: Confidence;
        plates: Confidence;
        transforms: Confidence;
    }

    What the source actually carried (DD-001 ethos — never fabricated).

    Type declaration

    • instanced: Confidence

      'known' when the source reused geometry via instances (more placements than unique masters), so the scene preserved it as GPU instancing (DD-022); 'unavailable' otherwise.

    • materials: Confidence

      'known' when the source assigned colors/materials, else 'unavailable'.

    • multiObject: Confidence

      'known' when the source declared more than one object.

    • plates: Confidence

      'known' when the source explicitly declares plate structure (incl. an explicit single plate); 'unavailable' for undeclared/implicit plate structure (DD-025).

    • transforms: Confidence

      'known' for real per-object transforms (3MF); 'unavailable' for a bare STL.

    objects: ModelObject[]
    plates?: { active?: number; list: ModelPlateSummary[] }

    Declared plate structure (DD-025). Present only when the source explicitly declares plates; a consumer shows a plate selector only when capabilities.plates === 'known'. active is the source's active/default plate id when declared (a consumer's natural initial selection — the renderer never forces all-plates).