Skip to main content

Largest Inscribed Rectangle

Returns the largest rectangle that fits inside a polygon, at any rotation

Written by Holly Conrad Smith

Use this when you're maximizing a rectangular footprint inside an irregular site or floorplate, at whatever angle fits best — for example, fitting the biggest possible building envelope, parking pad, or sports court inside an oddly shaped parcel.

Category: Geometric Operations

Kind: Operation

Description: returns the largest rectangle that fits inside a polygon, at any rotation

Inputs

Name

Abbreviation

Type

Access

Description

polygon

P

Cartesian

Item

the polygon to fit a rectangle inside

Outputs

Name

Abbreviation

Type

Access

Description

rectangle

R

Cartesian

Item

the inscribed rectangle

width

W

Number

Item

the width of the rectangle

height

H

Number

Item

the height of the rectangle

How to

  1. Add the Largest Inscribed Rectangle node.

  2. Feed in a polygon.

  3. The outputs are the largest rectangle that fits inside it, at whatever rotation makes it biggest, plus its width and height.

Did this answer your question?