measure_polygon
Measure closed polygon area (sq ft) and perimeter (lin ft) from pixel coordinates at the sheet's scale. Supports deduct roles and conditional commit.
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 |