Boost logo

Geometry :

From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2020-06-22 11:49:31


W dniu 22.06.2020 o 13:36, Stamsund via Geometry pisze:
> Hi,
>
> I easily could find some examples that demonstrate how to add / subtract
> polygons from each other (e.g. at
> https://stackoverflow.com/questions/47202777/incorrect-subtract-result-using-boost-polygon
> )
>
> Now that I do not have simple polygons, two questions come up where I could
> not find an answer for:
>
> - bases on the example given above, how do I define a polygon with holes in
> it?
>
> - when getting the returned polygon data, how can I identify the end of the
> polygons outline and the beginning of a hole? Means how can I recognise in
> the returned data what the outline is and what the holes are?
This is a different library. The example is for Boost.Polygon, this is
Boost.Geometry.

The answers to your questions should be here:
https://www.boost.org/doc/libs/1_73_0/libs/polygon/doc/gtl_polygon_with_holes_concept.htm

Adam


Geometry list run by mateusz at loskot.net