Subject: Re: [boost] [Review Request] Inclusion of the Boost.Polygon Voronoi Library
From: Phil Endecott (spam_from_boost_dev_at_[hidden])
Date: 2012-05-23 16:37:16


Andrii Sydorchuk wrote:
> On Tue, May 22, 2012 at 9:24 PM, Phil Endecott <
> spam_from_boost_dev_at_[hidden]> wrote:
>
>> I.e. rather than:
>>
>> voronoi_builder vb;
>> vb.insert(......);
>> voronoi_diagram vd;
>> vb.construct(&vd);
>>
>
> The expected library usage is actually different:
>
> voronoi_diagram<double> vd;
> construct_voronoi(begin(input), end(input), &vd);

Ah yes, I'd forgotten that. But construct_voronoi is just a 3-line
function that does what I was doing. In my case, it was simpler to
call insert() inside a for loop rather than trying to create some sort
of range adaptor to pass to the free function.

Regards, Phil.