mirror of https://github.com/CGAL/cgal
Don't use const Point& but property_traits<..>::reference
This commit is contained in:
parent
6546468092
commit
00be4cd8fa
|
|
@ -233,7 +233,8 @@ private:
|
|||
return mEdgeDataArray[get_edge_id(aEdge)];
|
||||
}
|
||||
|
||||
Point const& get_point ( vertex_descriptor const& aV ) const
|
||||
typename boost::property_traits<VertexPointMap>::reference
|
||||
get_point ( vertex_descriptor const& aV ) const
|
||||
{
|
||||
return get(Vertex_point_map,aV);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,6 @@ public:
|
|||
optional<typename Profile::Point> operator()( Profile const& aProfile ) const
|
||||
{
|
||||
typedef typename Profile::ECM ECM;
|
||||
typedef typename boost::graph_traits<ECM> GraphTraits;
|
||||
typedef typename CGAL::Halfedge_around_target_iterator<ECM> in_edge_iterator;
|
||||
|
||||
in_edge_iterator eb, ee ;
|
||||
|
|
|
|||
|
|
@ -120,7 +120,7 @@ private :
|
|||
FT Compute_volume_cost ( Vector const& v, Triangle_data_vector const& aTriangles ) ;
|
||||
FT Compute_shape_cost ( Point const& p, vertex_descriptor_vector const& aLink ) ;
|
||||
|
||||
Point get_point ( vertex_descriptor const& v ) const
|
||||
Point get_point ( vertex_descriptor const& v ) const
|
||||
{
|
||||
return convert(get(mProfile.vertex_point_map(),v));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue