Boost logo

Geometry :

Subject: [geometry] union 2d
From: Barend Gehrels (barend_at_[hidden])
Date: 2017-12-20 20:09:38


Hi Xor,

> What I can start using union 2d?
> For example I have a 7 boxs. How add (union) all rectangles and get
> one rectangle and hole inside?
> ###
> # #
> ###
> I'm beginer. Where is any example with makefile and tutorial?

Did you already look in the documentation?

http://www.boost.org/doc/libs/1_66_0/libs/geometry/doc/html/geometry/reference/algorithms/union_/union__3.html

There are examples there too.

For a union, it is not possible to do 7 boxes in one call. The most
straightforward way is to do 6 calls (first 1 and 2, then result with 3,
then result with 4, etc)

A makefile is not provided and not necessary, the library is header-only.

Regards, Barend


Geometry list run by mateusz at loskot.net