mirror of https://github.com/CGAL/cgal
Fix and more clean-up of the doc
This commit is contained in:
parent
276871d708
commit
eb10e59623
|
|
@ -18,7 +18,7 @@ namespace CGAL {
|
|||
* \cgalModels `ConvexHullTraits_3`
|
||||
* \cgalModels `IsStronglyConvexTraits_3`
|
||||
*/
|
||||
template<class PointPropertyMap, class Base_traits>
|
||||
template<class PointPropertyMap, class Base_traits=Default>
|
||||
class Extreme_points_traits_adapter_3
|
||||
{
|
||||
public:
|
||||
|
|
|
|||
|
|
@ -79,8 +79,8 @@ struct Forward_functor
|
|||
}//end Convex_hull_impl
|
||||
template<
|
||||
class PointPropertyMap,
|
||||
class Base_traits=internal::Convex_hull_3::Default_traits_for_Chull_3<
|
||||
typename boost::property_traits<PointPropertyMap>::type>
|
||||
class Base_traits=typename internal::Convex_hull_3::Default_traits_for_Chull_3<
|
||||
typename boost::property_traits<PointPropertyMap>::value_type>::type
|
||||
>
|
||||
class Extreme_points_traits_adapter_3
|
||||
:public Base_traits
|
||||
|
|
@ -241,10 +241,19 @@ public:
|
|||
};
|
||||
template<class PointPropertyMap,class Base_traits>
|
||||
Extreme_points_traits_adapter_3<PointPropertyMap, Base_traits>
|
||||
make_extreme_points_traits_adapter(const PointPropertyMap& pmap, Base_traits traits)
|
||||
make_extreme_points_traits_adapter(const PointPropertyMap& pmap, Base_traits traits = Base_traits())
|
||||
{
|
||||
return Extreme_points_traits_adapter_3<PointPropertyMap, Base_traits>(pmap, traits);
|
||||
}
|
||||
|
||||
template<class PointPropertyMap>
|
||||
Extreme_points_traits_adapter_3<PointPropertyMap>
|
||||
make_extreme_points_traits_adapter(const PointPropertyMap& pmap)
|
||||
{
|
||||
return Extreme_points_traits_adapter_3<PointPropertyMap>(pmap);
|
||||
}
|
||||
|
||||
|
||||
//helper function
|
||||
|
||||
}//end CGAL
|
||||
|
|
|
|||
|
|
@ -225,6 +225,8 @@ void test_extreme_vertices(const char* fname)
|
|||
std::vector<boost::graph_traits<Polyhedron_3>::vertex_descriptor> verts;
|
||||
CGAL::extreme_points_3(vertices(P), std::back_inserter(verts) ,
|
||||
CGAL::make_extreme_points_traits_adapter(pmap, traits));
|
||||
CGAL::extreme_points_3(vertices(P), std::back_inserter(verts) ,
|
||||
CGAL::make_extreme_points_traits_adapter(pmap));
|
||||
}
|
||||
|
||||
int main()
|
||||
|
|
|
|||
Loading…
Reference in New Issue