Created
February 1, 2018 18:47
-
-
Save afabri/8f85d4648043578298eeea057f2b98ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h> | |
#include <CGAL/Periodic_2_Delaunay_triangulation_2.h> | |
#include <CGAL/Periodic_2_Delaunay_triangulation_traits_2.h> | |
#include <cassert> | |
typedef CGAL::Exact_predicates_inexact_constructions_kernel K; | |
typedef CGAL::Periodic_2_Delaunay_triangulation_traits_2<K> Gt; | |
typedef CGAL::Periodic_2_triangulation_vertex_base_2<Gt> Vb; | |
typedef CGAL::Periodic_2_triangulation_face_base_2<Gt> Fb; | |
typedef CGAL::Triangulation_data_structure_2<Vb, Fb> Tds; | |
typedef CGAL::Periodic_2_Delaunay_triangulation_2<Gt> Dt; | |
typedef Dt::Point Point; | |
typedef Dt::Iso_rectangle Iso_rectangle; | |
int main( ) | |
{ | |
Dt dt(Iso_rectangle(-1,-1, 1,1)); | |
dt.insert(Point(0.52424309961497784, 0.57546428218483925)); | |
dt.insert(Point(0.92118214350193739, 0.84250900708138943)); | |
dt.insert(Point(-0.40346976928412914, -0.86726443842053413)); | |
dt.insert(Point(0.20743864588439465, 0.16237608063966036)); | |
dt.insert(Point(0.10698232334107161, 0.63036294560879469)); | |
dt.insert(Point(0.7099146069958806, 0.098925893194973469)); | |
dt.insert(Point(-0.31582547631114721, 0.85678867343813181)); | |
dt.insert(Point(-0.29806009121239185, -0.63358250074088573)); | |
dt.insert(Point(-0.44665104430168867, -0.63457758259028196)); | |
dt.insert(Point(0.43622821476310492, -0.91966105625033379)); | |
dt.insert(Point(0.22867147997021675, -0.49061673600226641)); | |
dt.insert(Point(-0.13780288305133581, -0.34541578404605389)); | |
dt.insert(Point(0.88391058426350355, -0.67509474139660597)); | |
dt.insert(Point(-0.91981603670865297, -0.20505527034401894)); | |
dt.insert(Point(-0.75734955165535212, 0.27909358777105808)); | |
dt.insert(Point(-0.3951283385977149, 0.23071866855025291)); | |
dt.insert(Point(-0.76316707581281662, -0.90528622269630432)); | |
assert(dt.is_valid(true)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment