G-code Preview — API Reference
    Preparing search index...
    • Deterministic framing pose from a model center and bounding radius (both in printer coordinates). Converts printer coords → scene coords through the root Z-up→Y-up rotation (x, z, -y) and places the camera at the fixed 3/4 offset the renderers share.

      The perspective offset magnitude is ≈2.69·radius at fov 50°, so the visible half-height at the target plane is ≈2.69·radius·tan(25°) ≈ 1.25·radius; an orthographic frustum uses the same half-height so toggling projection keeps the model the same apparent size (#150).

      Extracted verbatim from ToolpathRenderer.frame() (DD-018 Phase 0) so ModelRenderer frames identically. Pure — allocates and returns fresh vectors; mutates nothing.

      Parameters

      • center: Vector3
      • radius: number

      Returns Framing