vw2d_edit
Replace a polygon, polyline, or rectangle outline exactly using points, paths, or raw vertices, with optional holes; edits preserve attributes and create one undo step.
Instructions
Replace the outline of a polygon/polyline/rect exactly.
Give one of: points [[x, y], ...] (corners), path (same format as vw2d_draw paths, lines + true arcs) or raw vertices [[x, y, type, radius]] as returned by vw2d_read. holes: list of point lists or paths. Same vertex count and no holes: edited in place (uuid stays), otherwise rebuilt with the same class, attributes, name, group and stacking position (new uuid returned). One undo step.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| unit | No | document | |
| uuid | Yes | ||
| holes | No | ||
| closed | No | ||
| points | No | ||
| relative | No | ||
| vertices | No |