Search code examples
javaalgorithmgeometrypolygoncomputational-geometry

Java library for creating straight skeleton?


I have as an input a 2D polygon with holes, and I need to find it's straight skeleton, like in the picture:


(source: cgal.org)

Maybe there is a good Java library for it?

And if not, can you point me to the good explanation of the algorithm, so I could implement it myself? (I haven't found good resources on Google)


Solution

  • I wrote this a little while back. Not sure if it's robust enough. https://github.com/twak/campskeleton

    (edited for 2018...)