Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Problem with mesh_polyhedral_domain

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Problem with mesh_polyhedral_domain


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Problem with mesh_polyhedral_domain
  • Date: Wed, 12 Jan 2011 09:48:59 +0100

Edouard Oudet wrote:
Thank you for your fast answer.
Could you precise in which sense it is not a surface ? I just checked that there is no self intersection and I didn't detect any other problem. Surely I am missing some points...

Inside the volume, you have at least two edges shared by three triangles each. If you load it in the Polyhedron demo of CGAL, you will see red edges (they are the non-manifold one)

S.

Edouard.

edouard wrote:
Dear CGAL users,

Under linux 64b ubuntu 10.10 I am experimenting some troubles when using the
example code "mesh_polyhedral_domain". The small example works fine with the
oringinal mesh but when I replace the data/elephant.off file by the following
one :

http://www.lama.univ-savoie.fr/~oudet/Download/Meshes/elephant.off

This input cannot be handle by Polyhedron_3 (this is not a surface).
The polyhedron is then empty when you call the mesh algorithm.
In debug mode you would have had a precondition error.

S.


I obtain
./mesh_polyhedral_domain terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

The input file seems to be OK. As reported in the mailing list, I checked that
the option -frounding-math is turned on. See below the output of the cmake/make
process.

Any help/comment are welcome,

best regards, Edouard Oudet.



[100%] Building CXX object
CMakeFiles/mesh_polyhedral_domain.dir/mesh_polyhedral_domain.o
/usr/bin/c++ -DCGAL_USE_ZLIB -frounding-math -O3 -DNDEBUG
-I/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3/../../include
-I/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3
-I/home/oudet/C++/CGAL/CGAL-3.7/include -o
CMakeFiles/mesh_polyhedral_domain.dir/mesh_polyhedral_domain.o -c
/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3/mesh_polyhedral_domain.cpp
Linking CXX executable mesh_polyhedral_domain
/usr/bin/cmake -E cmake_link_script
CMakeFiles/mesh_polyhedral_domain.dir/link.txt --verbose=1
/usr/bin/c++ -frounding-math -O3 -DNDEBUG CMakeFiles/mesh_polyhedral_domain.dir/mesh_polyhedral_domain.o -o
mesh_polyhedral_domain -rdynamic -L/home/oudet/C++/CGAL/CGAL-3.7/lib
/home/oudet/C++/CGAL/CGAL-3.7/lib/libCGAL_ImageIO.so
/home/oudet/C++/CGAL/CGAL-3.7/lib/libCGAL.so -lgmpxx -lmpfr -lgmp
-lboost_thread-mt -lGLU -lGL -lSM -lICE -lX11 -lXext -lz
/home/oudet/C++/CGAL/CGAL-3.7/lib/libCGAL_ImageIO.so
/home/oudet/C++/CGAL/CGAL-3.7/lib/libCGAL.so -lgmpxx -lmpfr -lgmp
-lboost_thread-mt -lGLU -lGL -lSM -lICE -lX11 -lXext -lz
-Wl,-rpath,/home/oudet/C++/CGAL/CGAL-3.7/lib make[2]: Leaving directory `/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3'
/usr/bin/cmake -E cmake_progress_report
/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3/CMakeFiles 5
[100%] Built target mesh_polyhedral_domain
make[1]: Leaving directory `/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3'
/usr/bin/cmake -E cmake_progress_start
/home/oudet/C++/CGAL/CGAL-3.7/examples/Mesh_3/CMakeFiles 0









Archive powered by MHonArc 2.6.16.

Top of Page