Skip to content

Commit

Permalink
add test of initial_points_generator with a generator generating tupl…
Browse files Browse the repository at this point in the history
…e-like object
  • Loading branch information
lrineau committed Dec 17, 2024
1 parent 79ebe7a commit 9803ab4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Mesh_3/test/Mesh_3/test_meshing_unit_tetrahedron.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ struct Polyhedron_tester : public Tester<K>
std::vector<Initial_point> initial_points = { Initial_point{ Weighted_point(.5, .5, .5), 3, Index{}} };
c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, CGAL::parameters::initial_points(initial_points));

// test initial_points_generator with a generator generating tuple-like object
auto initial_points_generator = [](auto oit, const int) {
*oit++ = Initial_point{ Weighted_point(.5, .5, .5), 3, Index{} };
return oit;
};
c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria,
CGAL::parameters::initial_points_generator(initial_points_generator));

CGAL::remove_far_points_in_mesh_3(c3t3);

double vol = 1/6.;
Expand Down

0 comments on commit 9803ab4

Please sign in to comment.