mirror of https://github.com/CGAL/cgal
Fixed using random border halfedges
This commit is contained in:
parent
b1c9c993e2
commit
28cdbb7df7
|
|
@ -236,6 +236,8 @@ void test_random_entities(const G& g, CGAL::Random& rnd)
|
||||||
Face_location loc;
|
Face_location loc;
|
||||||
|
|
||||||
halfedge_descriptor h = CGAL::internal::random_halfedge_in_mesh(g, rnd);
|
halfedge_descriptor h = CGAL::internal::random_halfedge_in_mesh(g, rnd);
|
||||||
|
if(is_border(h, g))
|
||||||
|
h = opposite(h, g);
|
||||||
face_descriptor f = CGAL::internal::random_face_in_mesh(g, rnd);
|
face_descriptor f = CGAL::internal::random_face_in_mesh(g, rnd);
|
||||||
|
|
||||||
int nn = 1e2;
|
int nn = 1e2;
|
||||||
|
|
@ -803,7 +805,7 @@ int main()
|
||||||
std::cout.precision(17);
|
std::cout.precision(17);
|
||||||
std::cout << std::fixed;
|
std::cout << std::fixed;
|
||||||
|
|
||||||
// CGAL::Random rnd(1556198743); // if needed to debug with a fixed seed
|
// CGAL::Random rnd(1557332474); // if needed to debug with a fixed seed
|
||||||
CGAL::Random rnd(CGAL::get_default_random());
|
CGAL::Random rnd(CGAL::get_default_random());
|
||||||
|
|
||||||
std::cout << "The seed is " << rnd.get_seed() << std::endl;
|
std::cout << "The seed is " << rnd.get_seed() << std::endl;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue