G-code Preview — API Reference
    Preparing search index...
    • Pick the tube cross-section resolution for a large file (DD-022 / RR-006 correction). Bounding tube memory by dropping segments shreds the tube (each survivor becomes a disconnected capped stub → spikes); the right lever is a coarser cross-section at full segment continuity. Returns the largest radialSegments in [MIN_RADIAL_SEGMENTS, requested] whose whole-build cost fits byteBudget, or null when even the minimum does not — the caller then falls back to flat lines (honest, continuous).

      Parameters

      • segmentCount: number
      • requested: number
      • byteBudget: number = TUBE_CPU_BYTE_BUDGET

      Returns null | number