Straight Skeleton - or how to draw a center line in a polygon or shape?

@micycle Thanks for your reply & advice, I’m looking forward to checking out your library :slight_smile:

I’ve revisited this topic recently after unearthing a straight-skeleton implementation that is ~50x faster than camp-skeleton (however, it can produce malformed outputs). It will be integrated into the next version of PGS.

Here are some illustrations of what can be done with PGS (namely the PGS_Contour.straightSkeleton(), PGS_Coloring.colorMesh() and PGS_Contour.offsetCurvesInward() methods).

1 Like