Add Construct_point_2 to APL2 traits models

The traits is supposed to be a model of a concept which refines
TriangulationTraits2, which demands a model of ConstructPoint_2,
so it should have been there.
This commit is contained in:
Mael Rouxel-Labbé 2020-03-10 12:03:47 +01:00
parent 5a3d877892
commit 2ee69c240b
2 changed files with 11 additions and 0 deletions

View File

@ -174,6 +174,7 @@ public:
//---------------------------------
typedef typename CK_traits::Construct_object_2 Construct_object_2;
typedef typename CK_traits::Assign_2 Assign_2;
typedef typename CK_traits::Construct_point_2 Construct_point_2;
// CONSTRUCTIONS
//--------------
@ -338,6 +339,10 @@ public:
return Construct_object_2();
}
Construct_point_2
construct_point_2_object() const {
return Construct_point_2();
}
// CONSTRUCTIONS
//--------------

View File

@ -84,6 +84,8 @@ public:
// CONSTRUCTIONS
//--------------
typedef typename Kernel::Construct_point_2 Construct_point_2;
// vertex and dual site
typedef CGAL_APOLLONIUS_GRAPH_2_NS::Construct_Apollonius_vertex_2<Kernel>
/* */ Construct_Apollonius_vertex_2;
@ -151,6 +153,10 @@ public:
return Construct_object_2();
}
Construct_point_2
construct_point_2_object() const {
return Construct_point_2();
}
// CONSTRUCTIONS
//--------------