
23 May
2012
23 May
'12
8:37 p.m.
Andrii Sydorchuk wrote:
On Tue, May 22, 2012 at 9:24 PM, Phil Endecott < spam_from_boost_dev@chezphil.org> 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.