mirror of https://github.com/CGAL/cgal
Fixed P2DT2's traits class in demo
This commit is contained in:
parent
9a3973634a
commit
b36154cb7c
|
|
@ -4,7 +4,7 @@
|
||||||
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|
||||||
#include <CGAL/Periodic_2_triangulation_2.h>
|
#include <CGAL/Periodic_2_triangulation_2.h>
|
||||||
#include <CGAL/Periodic_2_Delaunay_triangulation_2.h>
|
#include <CGAL/Periodic_2_Delaunay_triangulation_2.h>
|
||||||
#include <CGAL/Periodic_2_triangulation_traits_2.h>
|
#include <CGAL/Periodic_2_Delaunay_triangulation_traits_2.h>
|
||||||
#include <CGAL/point_generators_2.h>
|
#include <CGAL/point_generators_2.h>
|
||||||
|
|
||||||
// Qt headers
|
// Qt headers
|
||||||
|
|
@ -32,11 +32,11 @@
|
||||||
|
|
||||||
//typedef CGAL::Exact_predicates_inexact_constructions_kernel EPIC;
|
//typedef CGAL::Exact_predicates_inexact_constructions_kernel EPIC;
|
||||||
struct EPIC : public CGAL::Exact_predicates_inexact_constructions_kernel {};
|
struct EPIC : public CGAL::Exact_predicates_inexact_constructions_kernel {};
|
||||||
typedef CGAL::Periodic_2_triangulation_traits_2<EPIC> K;
|
typedef CGAL::Periodic_2_Delaunay_triangulation_traits_2<EPIC> Gt;
|
||||||
typedef K::Point_2 Point_2;
|
typedef Gt::Point_2 Point_2;
|
||||||
typedef K::Iso_rectangle_2 Iso_rectangle_2;
|
typedef Gt::Iso_rectangle_2 Iso_rectangle_2;
|
||||||
|
|
||||||
typedef CGAL::Periodic_2_Delaunay_triangulation_2<K> Periodic_DT;
|
typedef CGAL::Periodic_2_Delaunay_triangulation_2<Gt> Periodic_DT;
|
||||||
|
|
||||||
class MainWindow :
|
class MainWindow :
|
||||||
public CGAL::Qt::DemosMainWindow,
|
public CGAL::Qt::DemosMainWindow,
|
||||||
|
|
@ -362,8 +362,8 @@ MainWindow::open(QString fileName)
|
||||||
QApplication::setOverrideCursor(Qt::WaitCursor);
|
QApplication::setOverrideCursor(Qt::WaitCursor);
|
||||||
std::ifstream ifs(qPrintable(fileName));
|
std::ifstream ifs(qPrintable(fileName));
|
||||||
|
|
||||||
K::Point_2 p;
|
Point_2 p;
|
||||||
std::vector<K::Point_2> points;
|
std::vector<Point_2> points;
|
||||||
while(ifs >> p) {
|
while(ifs >> p) {
|
||||||
points.push_back(p);
|
points.push_back(p);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue