Simplify
Fewer vertices: Douglas–Peucker with a tolerance in degrees, as turf.simplify.
Syntax
{ "id": "n1", "op": "simplify", "name": "simplify", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:tolerance, or read elsewhere as ch('simplify/tolerance').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
tolerance | float | 0.01 | |
preserveTopology | toggle | true |
Outputs
| Port | Type |
|---|---|
out | table |
Details
- Category: Geometry
- Operator:
simplify
Older projects
Projects saved before documents used operator classes. These convert to simplify when they open: SimplifyOp.