Advanced maths

Polygon straight skeleton calculator with inward offset events

A straight skeleton records the paths traced by polygon wavefront vertices while edges move inward at unit speed.

Your numbers

Boundary order, x,y rows. Strictly convex, no holes.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A straight skeleton records the paths traced by polygon wavefront vertices while edges move inward at unit speed. This bounded calculator supports strictly convex simple polygons and computes feasible intersections of supporting-edge planes in space and offset time. It returns ridge segments, event locations and the final inward offset.

THE FORMULAn_i·x−t=c_i; skeleton ridges join equal-time supporting-edge wavefronts inside all moving halfplanes.

A worked example

A 4×2 rectangle collapses at offset one. Its four corner trajectories end at (1,1) and (3,1), and the terminal ridge joins those points at time one. The two spatial event locations share the same time; counting them as two sequential time steps would misdescribe the collapse.

Good to know

Strictly convex simple polygons only, 3–32 decimal vertices within ±10,000, no consecutive collinear edges. Concave polygons, holes and reflex split events are rejected. Numerical roof-ridge intersections use tolerances; output is not a robust exact-predicate straight skeleton for arbitrary polygons.

Wavefront time is an inward distance

Each edge’s supporting line moves toward the polygon interior by distance t while keeping its original orientation. The moving boundary is the intersection of those inward halfplanes. Convexity makes that construction globally meaningful without deciding which reflex wavefront branches survive a split event.

The calculator lifts each moving line into a plane in x,y,t coordinates. Intersections of two planes trace candidate ridges. Clipping each candidate against every other moving halfplane and against nonnegative time retains only the part that belongs to the feasible wavefront roof. Both endpoints therefore have geometric and temporal coordinates.

A rectangular wavefront ends on a central segment at a shared event timeWidth: 4Height: 2Final t = 1Events: (1,1,1) and (3,1,1)
The 4×2 rectangle has final inward offset one. Corner trajectories reach (1,1) and (3,1), joined by a terminal ridge. Both event locations occur at t=1; the ridge is not a later shrinking polygon.

The Convex polygon offset and inset calculator covers a related task. This page focuses on polygon straight skeleton calculator with inward offset events with the method limits and worked example described below.

Simultaneous collapse can leave a terminal segment

A non-square rectangle does not finish at a single point. Opposite short edges disappear when the shrinking height reaches zero, leaving a segment whose length reflects the original aspect ratio. A solver that assumes every ridge comes from two nonparallel spatial edge lines would miss this degenerate terminal geometry.

The three-dimensional plane representation handles this case because opposite spatial normals can still define intersecting space-time planes at a fixed time. The result preserves the central segment and lists both endpoint event locations. They are simultaneous wavefront events, not evidence that the polygon remains two-dimensional for an additional interval.

The supported family prevents a misleading skeleton

A concave polygon can create reflex split events that require additional topology management. Intersecting all inward halfplanes there would compute a convex restriction rather than the original polygon’s straight skeleton. Such inputs are rejected explicitly, so a plausible-looking but mathematically different ridge network is not returned.

The existing offset calculator constructs a polygon at a specified distance. This page instead records the evolving ridge network and its collapse times. A straight skeleton also differs from a general nonconvex medial axis, whose definition uses distances to boundary features rather than only the supporting lines.

A few questions, answered

Why is a concave polygon rejected?

Reflex split events need a different topology algorithm; intersecting all halfplanes would solve the wrong problem.

Can several events happen at once?

Yes. The rectangle example has two event locations at the same offset time.

Find your calculator

Start typing to explore the library.