Skip to content

Commit

Permalink
Add testcase that shows the problem
Browse files Browse the repository at this point in the history
  • Loading branch information
afabri authored and MaelRL committed Jan 11, 2024
1 parent d9e5a1f commit 3f3691a
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

#include <CGAL/Segment_Delaunay_graph_2.h>
#include <CGAL/Segment_Delaunay_graph_traits_2.h>
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>

typedef CGAL::Exact_predicates_exact_constructions_kernel K;
typedef CGAL::Segment_Delaunay_graph_traits_2<K> Gt;
typedef CGAL::Segment_Delaunay_graph_2<Gt> SDG2;

int main() {
auto segments = std::vector({
CGAL::Segment_2<K>(
CGAL::Point_2<K>(0.0, 0.0),
CGAL::Point_2<K>(1.0, 0.0))
});

SDG2 delaunay;
delaunay.insert_segments(segments.begin(), segments.end());

return 0;
}

0 comments on commit 3f3691a

Please sign in to comment.