Hi

according to :

https://www.mathopenref.com/polygonconvex.htmlyour union of box is concave... So it does not work.

You can split your concave polygon into several convex polygons ( 2 boxes

for examples), and taking the minimum distance from the set of polygons. So

you have to compute the distance from the 2 boxes.

--

Sent from:

http://cgal-discuss.949826.n4.nabble.com/--

You are currently subscribed to cgal-discuss.

To unsubscribe or access the archives, go to

https://sympa.inria.fr/sympa/info/cgal-discuss