I found that for BGL computations on
CGAL::Polyhedron_3<K,CGAL::Polyhedron_items_with_id_3>
the squared distance is used for edge weigths, which is defined in: CGAL/boost/graph/properties_Polyhedron_3.h
This produces wrong results on polyhedral meshes.
How can I change the weight metric without changing CGAL code?
My work around is that I change
reference operator[](key_type const& e) const
{
return CGAL::squared_distance(e->vertex()->point(), e->opposite()->vertex()->point());
}
in class Polyhedron_edge_weight_map to
reference operator[](key_type const& e) const
{
return sqrt(CGAL::squared_distance(e->vertex()->point(), e->opposite()->vertex()->point()));
}
Any ideas?
thanks and the best, Thomas