mirror of https://github.com/CGAL/cgal
Added another test to regular neighbors
This commit is contained in:
parent
07f96f9ab5
commit
cb7ea5a752
|
|
@ -251,6 +251,13 @@ void _test_natural_neighbors_2_with_outputfunctor(Rt T) // intentional copy beca
|
||||||
assert(is_equal);
|
assert(is_equal);
|
||||||
pt_coords.clear();
|
pt_coords.clear();
|
||||||
|
|
||||||
|
// with an absurdly low weight to have a vertex that is hidden on insertion
|
||||||
|
wp = Weighted_point(Bare_point(0,0), -1000.);
|
||||||
|
pt_coordinate_result = CGAL::regular_neighbor_coordinates_2(T, wp, std::back_inserter(pt_coords), pt_fct);
|
||||||
|
assert(pt_coords.empty());
|
||||||
|
assert(pt_coordinate_result.third);
|
||||||
|
assert(pt_coordinate_result.second == 0);
|
||||||
|
|
||||||
// test with hidden_vertices:
|
// test with hidden_vertices:
|
||||||
wp = Weighted_point(Bare_point(0,0), 4.);
|
wp = Weighted_point(Bare_point(0,0), 4.);
|
||||||
pt_coordinate_result = CGAL::regular_neighbor_coordinates_2(T, wp, std::back_inserter(pt_coords), pt_fct);
|
pt_coordinate_result = CGAL::regular_neighbor_coordinates_2(T, wp, std::back_inserter(pt_coords), pt_fct);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue