measure_polygon
Measure the area (sq ft) and perimeter (linear ft) of a closed polygon on a plan sheet, using the drawing scale to convert pixel coordinates. Supports deduction roles for subtractive quantities.
Instructions
Measure a closed polygon you supply (min 3 vertices, image px): area_sf and perimeter_lf at the sheet's scale. Requires the scale to be set. Pass condition to commit it; role "deduct" subtracts. Coordinates are image px at render scale 2.0: PDF pt × 2, origin top-left, y down (the browser canvas's native space). Sheet payloads carry dims in both px and pt.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | No | floor_area | |
| sheet | Yes | ||
| verts | Yes | ||
| condition | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nverts | Yes | ||
| area_sf | Yes | ||
| warning | No | Mixed-scale warning (#153): a scale note disagreeing with the sheet's sits in the measured region — verify before trusting these numbers | |
| shape_id | No | Present when condition was passed and the shape committed | |
| perimeter_lf | Yes |