Created
June 29, 2022 09:52
-
-
Save afabri/d765714fd80906bdddcc16d7696705a3 to your computer and use it in GitHub Desktop.
Issue 6723
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_exact_constructions_kernel.h> | |
#include <CGAL/ch_bykat.h> | |
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel; | |
typedef Kernel::Point_2 Point_2; | |
int main() | |
{ | |
std::vector<Point_2> v; | |
std::vector<Point_2> w({ | |
Point_2(0,0), | |
Point_2(5,0), | |
Point_2(2,1), | |
Point_2(2,2), | |
Point_2(3,1), | |
Point_2(4,2), | |
Point_2(4,1), | |
Point_2(3,2) | |
}); | |
for (const auto &x: w) { | |
std::cout << x << std::endl; | |
} | |
std::cout << "--------" << std::endl; | |
CGAL::ch_bykat(w.begin(), w.end(), std::back_inserter(v)); | |
for (const auto &x: v) { | |
std::cout << x << std::endl; | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment