Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] stack flow of "Triangulation_3.incident_vertices(

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] stack flow of "Triangulation_3.incident_vertices(


Chronological Thread 
  • From: Shuchu <>
  • To:
  • Subject: Re: [cgal-discuss] stack flow of "Triangulation_3.incident_vertices(
  • Date: Thu, 13 Nov 2008 10:28:28 +0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=uyp0nBoqWsxH76y8tPTS6zO+ni93+197V2el8ZXvuyhQhPHG7eBeuKbIqOuxx9snKo NMzyrLVpFV6X7fj5WyamfrJeZuzZsx/+okARBqRZ1hmpf9wq2MeuFzk7vPb/VDrD83y1 05oXMzxxH37TOsbAK2ehadBN9LLdvdQB2vTsQ=

Dear andreas,

Thanks for your help!

Best regards
shuchu


Andreas Fabri wrote:

Hello,

I just had a look at the code. The problem is that it calls
incident_cells, which is implemented recursively, and for a
vertex with many incident cells, as in your case the infinite
vertex, the stack is full.

We have to put it on our todo list. A temporary solution
might be to increase the stack size. I think for VC++ you
should use the linker command /STACK

http://msdn.microsoft.com/en-us/library/8cxs58a6(VS.80).aspx

Best regards,

andreas


Shuchu wrote:
Hi, all,

Why the operation "Triangulation_3.incident_vertices( )" show different results when in different compiler?

In my code , a CGAL::Triangulation_3 is built by using the method in "<CGAL/Triangulation_incremental_builder_3.h> " .

I try to find all vertices that incident to the infinite vertex. the code is as follow:
//////////////////////////////////////////////
CGAL::Triangulation_3<> original_tet; ........
std::vector<Vertex_handle> vertices_incident_infinite;
Vertex_handle infinite_p = original_tet.infinite_vertex();
original_tet.incident_vertices( infinite_p , std::back_inserter( vertices_incident_infinite));
.........
//////////////////////////////////////////

this part of code is working fine under the GCC compiler ( cygwin-gcc).
but in Vc2005, when debugging, the debugger throw an exception and say "stack overflow" at " original_tet.incident_vertices().."
like: " Unhandled exception at 0x00424ce9 in ****.exe: 0xC00000FD: Stack overflow."


Should I be careful when using this operation under VC2005?



Best Regards
Han shuchu









Archive powered by MHonArc 2.6.16.

Top of Page