mirror of https://github.com/CGAL/cgal
Merge branch 'Triangulation_3-fix_delaunay_cell_base-jtournoi' into releases/CGAL-4.5-branch
- fix Delaunay_triangulation_cell_base_3, which was not compiling - add testing for this class
This commit is contained in:
commit
2b7c05a1cc
|
|
@ -32,12 +32,14 @@
|
|||
namespace CGAL {
|
||||
|
||||
template < typename GT, typename Cb = Triangulation_ds_cell_base_3<> >
|
||||
class Triangulation_cell_base_3
|
||||
class Delaunay_triangulation_cell_base_3
|
||||
: public Triangulation_cell_base_3<GT, Cb>
|
||||
{
|
||||
public:
|
||||
typedef GT Geom_traits;
|
||||
typedef typename Geom_traits::Point_3 Point_3;
|
||||
|
||||
typename Geom_traits::Point_3
|
||||
Point_3
|
||||
circumcenter(const Geom_traits& gt = Geom_traits()) const
|
||||
{
|
||||
return gt.construct_circumcenter_3_object()(this->vertex(0)->point(),
|
||||
|
|
|
|||
|
|
@ -21,6 +21,9 @@
|
|||
#define CGAL_NO_DEPRECATION_WARNINGS
|
||||
|
||||
#include <CGAL/Delaunay_triangulation_3.h>
|
||||
#include <CGAL/Triangulation_data_structure_3.h>
|
||||
#include <CGAL/Triangulation_vertex_base_3.h>
|
||||
#include <CGAL/Delaunay_triangulation_cell_base_3.h>
|
||||
#include <CGAL/Triangulation_cell_base_with_circumcenter_3.h>
|
||||
|
||||
bool del=true;
|
||||
|
|
@ -39,7 +42,15 @@ int main()
|
|||
|
||||
_test_cls_delaunay_3( Cls() );
|
||||
_test_cls_delaunay_3( Cls_with_epec() );
|
||||
|
||||
|
||||
typedef CGAL::Triangulation_data_structure_3<
|
||||
CGAL::Triangulation_vertex_base_3<K>,
|
||||
CGAL::Delaunay_triangulation_cell_base_3<K> > Tds_Delaunay_Cb;
|
||||
typedef CGAL::Delaunay_triangulation_3<
|
||||
EPIC, Tds_Delaunay_Cb> Cls_with_Delaunay_Cb;
|
||||
|
||||
_test_cls_delaunay_3( Cls_with_Delaunay_Cb() );
|
||||
|
||||
#ifdef CGAL_LINKED_WITH_TBB
|
||||
typedef CGAL::Spatial_lock_grid_3<
|
||||
CGAL::Tag_priority_blocking> Lock_ds;
|
||||
|
|
|
|||
Loading…
Reference in New Issue