Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] 3d surface mesher non deterministic

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] 3d surface mesher non deterministic


Chronological Thread 
  • From: Laurent Rineau <>
  • To:
  • Subject: Re: [cgal-discuss] 3d surface mesher non deterministic
  • Date: Wed, 24 Sep 2008 15:50:11 +0200

On Wednesday 24 September 2008 15:30:52

wrote:
> hi,
>
> I tried to run CGAL/examples/Surface_mesher/mesh_an_implicit_function.cpp
> and noticed that each time I run the program, the output is
> slightly different.
> The resulting mesh approximating the given geometry, in fact, has different
> points and cells.
>
> Why is this process not deterministic?

Initial points are searched randomly.

> Is there a way to make it
> deterministic?

Add "CGAL::default_random = CGAL::Random(0);" at the beginning of main().
That
should be enough.

--
Laurent Rineau, PhD
Engineer at GeometryFactory
http://www.geometryfactory.com/



Archive powered by MHonArc 2.6.16.

Top of Page