simplify_polygon
Simplify a polygon by reducing vertices with the Douglas-Peucker algorithm. Adjust tolerance to control how aggressive the simplification is.
Instructions
Simplify a polygon via Douglas-Peucker and write it back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | Array of [x, y] points to simplify | |
| tolerance | No | Douglas-Peucker tolerance (higher = more aggressive) |