Create center-line for polygon
Opened this issue · 3 comments
exotfboy commented
Hi:
Is it possible to create center-line(mediaaxis) for polygon using JTS ? Like this.
dr-jts commented
Not in the current version. It's hoped to provide an Approximate Medial Axis algorithm at some point.
exotfboy commented
Well, any other java library can implement this?
micycle1 commented
Well, any other java library can implement this?
I have a library that finds center lines (medial, chordal and straight skeletons) here:
https://github.com/micycle1/PGS?tab=readme-ov-file#contour
It operates on Processing's PShape types, but there are methods to convert between JTS Geoms and PShapes.