mikael-s-persson/ReaK — Issue #4: Nearest neighbor operator() should only take vertex
Author: daviddoria
Created: 2012-01-31 01:50:28+00:00
State: open

Currently this is the signature:

template
typename boost::graph_traits::vertex_descriptor operator()(const typename boost::property_traits::value_type& p,
Graph& g,
const Topology& space,
PositionMap position)

It seems reasonable to give the NN object the topology, graph (if necessary), and position map upon construction, then just query it with:

typename boost::graph_traits::vertex_descriptor operator()(const typename boost::property_traits::value_type& p)