Polygon Offset Playground
Offsetting a polygon looks like moving every vertex outward along its angle bisector. It is the first thing you would write, and it is wrong — not because it self-intersects, which on most shapes it doesn't, but because it lands at the wrong distance. On the demo's star at 68 px, the worst point of the naive result sits 123.6 px from the source polygon. In CAD or cutting, that distance is the point: it's the seam allowance, the tool radius, the kerf.
The robust pass offsets each edge along its own normal, fills convex corners with an arc fan, trims reflex corners to the offset-edge intersection with a miter cap, then densifies and filters samples by their true distance to the source. The readout measures both, live, while you drag the vertices.