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

    Resource limits for untrusted source models (DD-018 §7). Source bytes are untrusted input; nothing is executed. Bounds are checked before large allocations so a hostile file fails cleanly.

    interface ModelLimits {
        maxInstances?: number;
        maxObjects?: number;
        maxSourceBytes?: number;
        maxTriangles?: number;
    }
    Index

    Properties

    maxInstances?: number

    Max total instance placements across the scene (DD-022): a source 3MF that reuses meshes via production-extension components / repeated build items is bounded on placement count, so an "instance bomb" (a tiny master referenced millions of times) is rejected cheaply from the structure — before any large geometry part is decompressed. Default 50,000.

    maxObjects?: number

    Max objects in a scene (3MF). Default 10,000.

    maxSourceBytes?: number

    Max source bytes accepted before parsing. Default 256 MiB.

    maxTriangles?: number

    Max triangles across the whole scene. Default 5,000,000.