mirror of https://github.com/CGAL/cgal
add the display of the seed to make tests reproducible
will be debugging
This commit is contained in:
parent
533fa556d6
commit
1e7633d863
|
|
@ -50,6 +50,9 @@ public:
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
Image image;
|
Image image;
|
||||||
image.read("data/liver.inr.gz");
|
image.read("data/liver.inr.gz");
|
||||||
|
|
||||||
|
std::cout << "\tSeed is\t"
|
||||||
|
<< CGAL::default_random.get_seed() << std::endl;
|
||||||
Mesh_domain domain(image, 1e-9, &CGAL::default_random);
|
Mesh_domain domain(image, 1e-9, &CGAL::default_random);
|
||||||
|
|
||||||
// Set mesh criteria
|
// Set mesh criteria
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,7 @@ int main(int argc, char* argv[])
|
||||||
double exude_bound = 15.;
|
double exude_bound = 15.;
|
||||||
|
|
||||||
// Domain
|
// Domain
|
||||||
|
std::cout << "\tSeed is\t 0" << std::endl;
|
||||||
Mesh_domain domain("data/cube.off");
|
Mesh_domain domain("data/cube.off");
|
||||||
//no random generator is given, so CGAL::Random(0) is used
|
//no random generator is given, so CGAL::Random(0) is used
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,6 +57,8 @@ struct Implicit_tester : public Tester<K>
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Data generation
|
// Data generation
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
std::cout << "\tSeed is\t"
|
||||||
|
<< CGAL::default_random.get_seed() << std::endl;
|
||||||
Mesh_domain domain(Implicit_tester<K>::sphere_function,
|
Mesh_domain domain(Implicit_tester<K>::sphere_function,
|
||||||
Sphere_3(CGAL::ORIGIN,2.),
|
Sphere_3(CGAL::ORIGIN,2.),
|
||||||
1e-3,
|
1e-3,
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ struct Polyhedron_tester : public Tester<K>
|
||||||
input >> polyhedron;
|
input >> polyhedron;
|
||||||
input.close();
|
input.close();
|
||||||
|
|
||||||
|
std::cout << "\tSeed is\t"
|
||||||
|
<< CGAL::default_random.get_seed() << std::endl;
|
||||||
Mesh_domain domain(polyhedron, &CGAL::default_random);
|
Mesh_domain domain(polyhedron, &CGAL::default_random);
|
||||||
|
|
||||||
// Set mesh criteria
|
// Set mesh criteria
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,8 @@ struct Polyhedron_with_features_tester : public Tester<K>
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
// Data generation
|
// Data generation
|
||||||
//-------------------------------------------------------
|
//-------------------------------------------------------
|
||||||
|
std::cout << "\tSeed is\t"
|
||||||
|
<< CGAL::default_random.get_seed() << std::endl;
|
||||||
Mesh_domain domain("data/cube.off", &CGAL::default_random);
|
Mesh_domain domain("data/cube.off", &CGAL::default_random);
|
||||||
domain.detect_features();
|
domain.detect_features();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,8 @@ int main(int argc, char** argv)
|
||||||
Point(0, 1, 0),
|
Point(0, 1, 0),
|
||||||
Point(0, 0, 1));
|
Point(0, 0, 1));
|
||||||
|
|
||||||
|
std::cout << "\tSeed is\t"
|
||||||
|
<< CGAL::default_random.get_seed() << std::endl;
|
||||||
Mesh_domain domain(p, &CGAL::default_random);
|
Mesh_domain domain(p, &CGAL::default_random);
|
||||||
|
|
||||||
typedef std::vector<K::Point_3> Polyline;
|
typedef std::vector<K::Point_3> Polyline;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue