Subject: CGAL users discussion list
List archive
- From: Peter Hachenberger <>
- To:
- Subject: Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef Polyhedra?
- Date: Thu, 29 Jan 2009 19:04:34 +0100
- Importance: Normal
- Sensitivity:
Hi Bart,
there are actually two sources of randomness in the construction of Nef polyhedra, which cause
the orders of vertices, edges, facets, etc. to be inconsistent. I have one client who explicitly asked
me to remove it, which I did for him. But it's still in the class as provided by us. That's on purpose.
We use a search data structure that uses randomness to guarantee a good running time with
an extremely high probability. Is this a problem?
Peter
----- wrote: -----there are actually two sources of randomness in the construction of Nef polyhedra, which cause
the orders of vertices, edges, facets, etc. to be inconsistent. I have one client who explicitly asked
me to remove it, which I did for him. But it's still in the class as provided by us. That's on purpose.
We use a search data structure that uses randomness to guarantee a good running time with
an extremely high probability. Is this a problem?
Peter
To: cgal-discuss <>
From: Bart Janssens <>
Sent by:
Date: 01/27/2009 10:25PM
Subject: [cgal-discuss] Inconsistent results in 3D booleans on Nef Polyhedra?
Hi all,
While working on the integration of CGAL 3D booleans in K-3D, I had
seen some problems where the output mesh was not always the same,
depending on what machine the test was run on. The meshes were always
visually correct, but the order of the edges would change in a
seemingly random way. Until now, I always assumed this was because of
floating point errors in the source mesh, but after having worked
around those, I think I have a test case that proves this behavior may
be caused by CGAL.
Attached is a test case that takes the difference between two slightly
deformed poly-cylinders (see screenshot). Included are the input
meshes and 3 reference output meshes, that resulted from running the
test program here. Compile using:
g++ -frounding-math boolean_consistency_test.cpp -lCGAL -lmpfr -lgmp -o test
Running ./test creates a new output.nef3 that can be diffed against
the reference files. Reference file 1 results from a run inside K-3D
on 32 bit linux, file 2 is the current test program output on 32 bit
linux and output 3 was created on a 64bit linux using the test
program.
Does anyone know what could cause the differences in the outputs? All
tests were run using a homogeneous kernel with Gmpz as number type.
Kind regards,
--
Bart
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
[attachment "boolean_consistency_test.tar.gz" removed by Peter Hachenberger]
[attachment "test_screenshot.png" removed by Peter Hachenberger]
- [cgal-discuss] Inconsistent results in 3D booleans on Nef Polyhedra?, Bart Janssens, 01/27/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef Polyhedra?, Peter Hachenberger, 01/29/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Bart Janssens, 01/30/2009
- RE: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Max, 01/30/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Bart Janssens, 01/30/2009
- RE: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Max, 01/30/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Peter Hachenberger, 01/31/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Bart Janssens, 01/30/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Aviv Hurvitz, 01/30/2009
- RE: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Max, 01/30/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef, Bart Janssens, 01/30/2009
- Re: [cgal-discuss] Inconsistent results in 3D booleans on Nef Polyhedra?, Peter Hachenberger, 01/29/2009
Archive powered by MHonArc 2.6.16.