mirror of https://github.com/CGAL/cgal
add test from issue #5275
This commit is contained in:
parent
18ed302d84
commit
96b205d9b0
|
|
@ -25,8 +25,9 @@ if(TARGET CGAL::Eigen3_support)
|
|||
create_single_source_cgal_program("test_tds.cpp")
|
||||
create_single_source_cgal_program("test_torture.cpp")
|
||||
create_single_source_cgal_program("test_insert_if_in_star.cpp")
|
||||
create_single_source_cgal_program("simple_io_test.cpp")
|
||||
foreach(target test_triangulation test_delaunay test_regular test_tds
|
||||
test_torture test_insert_if_in_star)
|
||||
test_torture test_insert_if_in_star simple_io_test)
|
||||
target_link_libraries(${target} PUBLIC CGAL::Eigen3_support)
|
||||
endforeach()
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
#include <CGAL/Epick_d.h>
|
||||
#include <CGAL/Delaunay_triangulation.h>
|
||||
#include <sstream>
|
||||
|
||||
int main()
|
||||
{
|
||||
typedef CGAL::Delaunay_triangulation<CGAL::Epick_d<CGAL::Dimension_tag<2>>> T;
|
||||
T dt1(2), dt2(2);
|
||||
|
||||
std::vector<T::Point> points;
|
||||
points.emplace_back(1,0);
|
||||
points.emplace_back(0,1);
|
||||
points.emplace_back(2,2);
|
||||
dt1.insert(points.begin(), points.end());
|
||||
|
||||
std::stringstream f;
|
||||
f << dt1 << std::endl;
|
||||
std::cout << f.str();
|
||||
f >> dt2;
|
||||
assert(dt2.is_valid(true));
|
||||
}
|
||||
Loading…
Reference in New Issue