add the display of the seed to make tests reproducible

will be debugging
This commit is contained in:
Jane Tournois 2014-03-27 10:41:17 +01:00
parent 533fa556d6
commit 1e7633d863
6 changed files with 13 additions and 1 deletions

View File

@ -50,6 +50,9 @@ public:
//-------------------------------------------------------
Image image;
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);
// Set mesh criteria

View File

@ -38,6 +38,7 @@ int main(int argc, char* argv[])
double exude_bound = 15.;
// Domain
std::cout << "\tSeed is\t 0" << std::endl;
Mesh_domain domain("data/cube.off");
//no random generator is given, so CGAL::Random(0) is used

View File

@ -57,6 +57,8 @@ struct Implicit_tester : public Tester<K>
//-------------------------------------------------------
// Data generation
//-------------------------------------------------------
std::cout << "\tSeed is\t"
<< CGAL::default_random.get_seed() << std::endl;
Mesh_domain domain(Implicit_tester<K>::sphere_function,
Sphere_3(CGAL::ORIGIN,2.),
1e-3,

View File

@ -52,6 +52,8 @@ struct Polyhedron_tester : public Tester<K>
input >> polyhedron;
input.close();
std::cout << "\tSeed is\t"
<< CGAL::default_random.get_seed() << std::endl;
Mesh_domain domain(polyhedron, &CGAL::default_random);
// Set mesh criteria

View File

@ -51,6 +51,8 @@ struct Polyhedron_with_features_tester : public Tester<K>
//-------------------------------------------------------
// Data generation
//-------------------------------------------------------
std::cout << "\tSeed is\t"
<< CGAL::default_random.get_seed() << std::endl;
Mesh_domain domain("data/cube.off", &CGAL::default_random);
domain.detect_features();

View File

@ -46,6 +46,8 @@ int main(int argc, char** argv)
Point(0, 1, 0),
Point(0, 0, 1));
std::cout << "\tSeed is\t"
<< CGAL::default_random.get_seed() << std::endl;
Mesh_domain domain(p, &CGAL::default_random);
typedef std::vector<K::Point_3> Polyline;