Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Polyhedron/Nef interface example does not produce correct result.

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Polyhedron/Nef interface example does not produce correct result.


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Polyhedron/Nef interface example does not produce correct result.
  • Date: Wed, 27 Oct 2010 08:21:06 +0200

There are two problems with your input:
1) in this line
0.0 10.0.0 0.0
10.0.0 is not a correct value
2)orientation of faces is not consistent.

The following is working fine on my machine
OFF
4 4 0
0.0 0.0 0.0
10.0 0.0 0.0
0.0 10.0 0.0
0.0 0.0 10.0
3 0 1 3
3 0 3 2
3 3 1 2
3 0 2 1

For the second problem reported, if you enable assert check in CGAL,
you would have get this error message:

Gmpz constructed from non-integer double value

The input for this example needs to be made of integers.
Look at the example handling_double_coordinates.cpp to see how to cope
with them.

S.

Hamid G wrote:
Hello
I just compiled/installed CGLA 3.7 on a 32-bit Debian linux box (gcc 4.4.5). and I am trying to run the example code in
'example/Nef_3/interface_polyhedron.cpp'
I passed down the following OFF file and expected to get some proper result
but this is what I got:
$ ./interface_polyhedron < tet.off OFF 0 0 0
Also using provided OFF file in example directory, gives:

$ ./interface_polyhedron < handling_double_coordinates.cin
Error !!!!!!!!!!!!!!!!!!!!!!!
Error !!!!!!!!!!!!!!!!!!!!!!!
Error !!!!!!!!!!!!!!!!!!!!!!!
Error !!!!!!!!!!!!!!!!!!!!!!!
Error !!!!!!!!!!!!!!!!!!!!!!!
Error !!!!!!!!!!!!!!!!!!!!!!!
Segmentation fault


I compiled the examples as instructed:
$ cmake -DCGAL_DIR=/path/to/cgal . $ make

Any help is appreciated.
thanks in advance, Hamid G


# tet.off OFF 4 4 0 0.0 0.0 0.0 10.0 0.0 0.0 0.0 10.0.0 0.0 0.0 0.0 10.0 3 0 1 3 3 3 0 2 3 3 2 1 3 0 2 1




Archive powered by MHonArc 2.6.16.

Top of Page