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).