Subject: CGAL users discussion list
List archive
- From: <>
- To:
- Subject: [cgal-discuss] using CGAL::convex_decomposition_3
- Date: Fri, 18 Sep 2009 17:40:11 +0200 (CEST)
Hi, I am using convex_decomposition_3 to decompose a closed object with one
hole (genus) I used the example of CGAL 3.5 (with few adaptations)
It works fine for small no convex objects, but for torus or more complex
objects it (in debug mode) gives me (when call
CGAL::convex_decomposition_3(N);) :
NerfPolyhedraCGAL35.exe': Loaded
'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6001.18000_none_5cdbaa5a083979cc\comctl32.dll'
First-chance exception at 0x7661f328 in NerfPolyhedraCGAL35.exe: Microsoft C++
exception: CGAL::Uncertain_conversion_exception at memory location
0x0069e8e4..
First-chance exception at 0x7661f328 in NerfPolyhedraCGAL35.exe: Microsoft C++
exception: CGAL::Uncertain_conversion_exception at memory location
0x0069e8e4..
HERE IS FRAGMENT OF MY PROGRAM
Polyhedron_3 P;
std::ifstream fcin("C:\\Users\\rlam\\CGAL
Code\\NerfPolyhedraCGAL35\\NerfPolyhedraCGAL35\\torus_tri.off");
fcin >> P;
if(P.is_closed()) {
Nef_polyhedron_3 N(P);
CGAL::convex_decomposition_3(N);
std::list<Polyhedron_3> convex_parts;
// the first volume is the outer volume, which is
// ignored in the decomposition
Volume_const_iterator ci = ++N.volumes_begin();
Best regards
rlam
- [cgal-discuss] using CGAL::convex_decomposition_3, robertolam, 09/18/2009
- Re: [cgal-discuss] using CGAL::convex_decomposition_3, Sylvain Pion, 09/18/2009
- Re: [cgal-discuss] using CGAL::convex_decomposition_3, Roberto Lam, 09/19/2009
- Re: [cgal-discuss] using CGAL::convex_decomposition_3, Sylvain Pion, 09/18/2009
Archive powered by MHonArc 2.6.16.