matGeom icon indicating copy to clipboard operation
matGeom copied to clipboard

Plan on adding medial axis for convex polygon?

Open warrenbocphet opened this issue 5 years ago • 5 comments

Hi, I was wondering if this is already on the to-do list? The library is extensive and beautifully done by the way.

warrenbocphet avatar Dec 16 '19 05:12 warrenbocphet

Hi vitsensei,

in fact there is already a function "medialAxisConvex" within the polygons2d package!

Syntax is: "[N, E] = medialAxisConvex(POLYGON);"

However, it seems to work only for rather simple polygons, so I would advise to use with care.

dlegland avatar Dec 16 '19 08:12 dlegland

Hi @dlegland, I am aware of that function. However, unfortunately, the application I'm thinking about requires the polygon to be concave!

warrenbocphet avatar Dec 16 '19 08:12 warrenbocphet

well, extension to concave polygons is expected, but I had no occasion to work on this recently. I suggest to keep the issue open until I can work on it. Is it fine?

dlegland avatar Dec 16 '19 09:12 dlegland

Of course it is fine. You have no idea how much I utilise your library. Thanks for being great!

warrenbocphet avatar Dec 16 '19 09:12 warrenbocphet

Sorry, I've linked this incorrectly to the last pull request. This should be opened again.

oqilipo avatar Oct 17 '23 07:10 oqilipo