Skip to content
pyboxbuilder
pyboxbuilder.paths.largest_inscribed_rectangle
Initializing search
    pinkfish/pythonscad_boxes
    pinkfish/pythonscad_boxes
      • Quickstart Guide
      • Getting Started
      • Box Types Guide & Gallery
      • Lid Patterns Guide & Gallery
      • Lid Labels Guide & Showcase
      • Auto-Layout & Automatic Spacers
      • Board-Game Insert Gallery
      • API Reference
        • pyboxbuilder
          • pyboxbuilder.box
          • pyboxbuilder.builders
          • pyboxbuilder.cli
          • pyboxbuilder.compartments
          • pyboxbuilder.deps
          • pyboxbuilder.enums
          • pyboxbuilder.export
          • pyboxbuilder.helpers
          • pyboxbuilder.layout
          • pyboxbuilder.lid
          • pyboxbuilder.packing
          • pyboxbuilder.paths
            • pyboxbuilder.paths.bounds
            • pyboxbuilder.paths.inset_rectilinear
            • pyboxbuilder.paths.is_rectilinear
            • pyboxbuilder.paths.largest_inscribed_rectangle
              • F pyboxbuilder.paths.largest_inscribed_rectangle
                • Returns
            • pyboxbuilder.paths.longest_inscribed_rectangle
            • pyboxbuilder.paths.point_in_polygon
            • pyboxbuilder.paths.polygon_area
            • pyboxbuilder.paths.polygon_convex_corners
            • pyboxbuilder.paths.polygon_opposite_corners
            • pyboxbuilder.paths.signed_area
          • pyboxbuilder.precision
          • pyboxbuilder.preview
          • pyboxbuilder.project
          • pyboxbuilder.rounding
          • pyboxbuilder.run
          • pyboxbuilder.sleeves
    • F pyboxbuilder.paths.largest_inscribed_rectangle
      • Returns

    pyboxbuilder.paths.largest_inscribed_rectangle¶

    pyboxbuilder.paths.largest_inscribed_rectangle(path: Sequence[tuple[float, float]]) → tuple[float, float, float, float][source]¶

    Find the largest axis-aligned inscribed rectangle in a simple polygon.

    Returns:¶

    (x, y, width, length) in the polygon’s local frame.

    © Copyright pyboxbuilder contributors.
    Created using Sphinx 8.2.3. and Sphinx-Immaterial