Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Samples Spatial Searching, combining Custom distance with property maps
  • Date: Mon, 12 Nov 2012 16:57:30 +0100
  • Organization: GeometryFactory

Go back here [1], the constructor takes two arguments:
the property map and the distance.

Sebastien.

[1] http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Spatial_searching_ref/Class_Distance_for_point_adapter.html

On 11/12/2012 04:51 PM, Daniel S. wrote:
Hello CGAL Users,

After using the above stated code successfully following question arose.

Assume I want to add a parameter to a distance class. How can I do so? This
parameter should be determined in the main.cpp. My first thought was, to add
a constructor to the distance.h and set the parameter this way.
This again leads to a error with the property map.

error C2664:
'CGAL::Distance_adapter<Point_with_info,PointPropertyMap,Base_distance>::Distance_adapter(const
PointPropertyMap&,const Base_distance&)': converting Parameters 1 from
'double' in 'const My_point_property_map&' not possible


But even if i can solve this. How does the kdTree know which parameter to
use, as it uses the standard construktor.

Any idea or thinks to read? If search the manual but couldn't find any
simular.


Greets fromn Germany
Daniel



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Samples-Spatial-Searching-combining-Custom-distance-with-property-maps-tp4656160p4656228.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page