G-code Preview — API Reference
    Preparing search index...
    • Compute bounds over segment endpoints, converting Float32 deltas back to absolute coordinates via origin. Returns extrude-only bounds, travel-inclusive bounds, and object-only bounds — the extrusion of labeled objects (object != 0), excluding skirt/prime/purge (which are object 0). objectBounds is empty (Infinity/-Infinity) when the file carries no object labels; a consumer that wants "frame the printed object, not the skirt" (#306/#6) uses it only when finite.

      Parameters

      Returns {
          bounds: ToolpathBounds;
          boundsWithTravel: ToolpathBounds;
          objectBounds: ToolpathBounds;
      }