Merge pull request #5158 from afabri/Convex_hull_3-Surface_mesh-GF

Convex_hull_3: Fix constness
This commit is contained in:
Laurent Rineau 2020-11-13 15:31:51 +01:00
commit f65e9f570f
1 changed files with 4 additions and 4 deletions

View File

@ -187,15 +187,15 @@ bool is_strongly_convex_3(const Polyhedron& P, const Traits& traits)
} }
template<class Polyhedron, class R> template<class Polyhedron, class R>
bool CGAL_is_strongly_convex_3(Polyhedron& P, Point_3<R>*) bool CGAL_is_strongly_convex_3(const Polyhedron& P, Point_3<R>*)
{ {
return is_strongly_convex_3(P, R()); return is_strongly_convex_3(P, R());
} }
template<class Polyhedron> template<class Polyhedron>
bool is_strongly_convex_3(Polyhedron& P) bool is_strongly_convex_3(const Polyhedron& P)
{ {
typedef typename boost::property_map<Polyhedron, vertex_point_t>::type Ppmap; typedef typename boost::property_map<Polyhedron, vertex_point_t>::const_type Ppmap;
typedef typename boost::property_traits<Ppmap>::value_type Point_3; typedef typename boost::property_traits<Ppmap>::value_type Point_3;
return CGAL_is_strongly_convex_3(P, reinterpret_cast<Point_3*>(0)); return CGAL_is_strongly_convex_3(P, reinterpret_cast<Point_3*>(0));
@ -204,7 +204,7 @@ bool is_strongly_convex_3(Polyhedron& P)
template <class ForwardIterator, class Polyhedron, class Traits> template <class ForwardIterator, class Polyhedron, class Traits>
bool all_points_inside( ForwardIterator first, bool all_points_inside( ForwardIterator first,
ForwardIterator last, ForwardIterator last,
Polyhedron& P, const Polyhedron& P,
const Traits& traits) const Traits& traits)
{ {
typedef typename Traits::Plane_3 Plane_3; typedef typename Traits::Plane_3 Plane_3;