Subject: CGAL users discussion list
List archive
- From: Marc Glisse <>
- To:
- Subject: Re: [cgal-discuss] Exact closest neighbor not working correctly
- Date: Sat, 18 Apr 2020 09:04:27 +0200 (CEST)
On Fri, 17 Apr 2020, Juan Jose Casafranca wrote:
So if I understand correctly, the problem here is that the property map
must model an LValuePropertyMap and that concept requires th operator[] to
return a reference, right? I have tried storing a vector of K::Point_3
points and works fine. Is there anyway I can build the K::Point_3 when
needed, instead, similarly to how I am doing it right now?
I am not sure, but LValuePropertyMap might be ok with some proxy type (like vector<bool> uses), or not. Also, the doc says LValuePropertyMap is required, but the code actually contains a fallback for more general property maps, so you could try that.
It may be easier to work with a single point type. If you cannot use CGAL's points everywhere, you could instead provide traits that define suitable functions for MyPoint.
--
Marc Glisse
- [cgal-discuss] Exact closest neighbor not working correctly, Juan Jose Casafranca, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Sebastien Loriot (GeometryFactory), 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Juan Jose Casafranca, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Marc Glisse, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Juan Jose Casafranca, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Lokesh Kumar, 04/18/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Marc Glisse, 04/18/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Juan Jose Casafranca, 04/20/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Juan Jose Casafranca, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Marc Glisse, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Juan Jose Casafranca, 04/17/2020
- Re: [cgal-discuss] Exact closest neighbor not working correctly, Sebastien Loriot (GeometryFactory), 04/17/2020
Archive powered by MHonArc 2.6.18.