Giter Club home page Giter Club logo

Comments (3)

fangq avatar fangq commented on August 21, 2024

Temporary workaround was committed in

https://sourceforge.net/p/iso2mesh/code/493/

still, the tet number may change because of the node ordering

from iso2mesh.

fangq avatar fangq commented on August 21, 2024

Issue appears to be un-fixed in the latest CGAL release (4.6). Steps to reproduce this issue:

  • download and compile CGAL 4.6
  • cd example/Mesh_3, run "make mesh_3D_image"
  • when complete, run
./mesh_3D_image
mv out.mesh out.mesh_1
./mesh_3D_image
diff out.mesh out.mesh_1

the files are different, both the node list, and element list.

  • apply the following patch to set the RNG seed
--- mesh_3D_image.cpp_old   2015-06-12 16:34:46.000000000 -0400
+++ mesh_3D_image.cpp   2015-06-12 16:34:29.000000000 -0400
@@ -36,6 +36,11 @@
   CGAL::Image_3 image;
   image.read("data/liver.inr.gz");

+  CGAL::Random rd(1234567);
+  CGAL::Random::State st;
+  rd.save_state(st);
+  CGAL::default_random.restore_state(st);
+
   // Domain
   Mesh_domain domain(image);
  • rerun the above test, the output files remain different - the mesh could not be reproduced.

from iso2mesh.

fangq avatar fangq commented on August 21, 2024

issue closed. with the above patch for RNG seeding, I was able to produce deterministic meshes when using the latest CGAL release v4.8.1. looks like some recent upstream updates fixed the problem.

from iso2mesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.