Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Facets_iterator

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Facets_iterator


Chronological Thread 
  • From: Dennis Endt <>
  • To:
  • Subject: Re: [cgal-discuss] Facets_iterator
  • Date: Mon, 06 Oct 2008 14:55:30 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=lMrQyaZrc4VdoNd+al6L++wVDsxmj/T6MjFGfynr2tbb1pP+Jr/GhBZhxuIdHVW9YV mzFRY4eR1xo/C0w+Dw6WjxEiqLibaLZ7483Ax4PYjm+8wi8fgyfcgtQbmqoh+uyBvTse TW0a47Y9vB11z7BtojlBtQfe6ifs1Lw4NJww0=

Manuel Caroli schrieb:
> Hi Dennis,
>
> Dennis Endt wrote:
>> Thanks for you help, I foudn a solution with
>>
>> Triangulation T;
>>
>> for(Triangulation::Finite_facets_iterator it = T.finite_facets_begin();
>> it != T.finite_facets_end(); it++)
>> {
>> T.triangle(*it).vertex(i)
>> }
> That's not the best solution. Actually you create a triangle just to
> extract a point. Be aware that 'it' is a pointer to a (cell,int) pair.
> So the coordinates of the points can be accessed by
> it->first->vertex(i)->point() with i != it->second.
>
> I vaguely remember having answered a similar question on this list
> before in more detail. The idea should also become clear from the manual.
>
> best
>
> Manuel
Hi Manuel,

thanks for your reply.

I tried your Solution and found out that it->second isn“t always 3 what
I would expect if I triangulate my face before. Sometimes I got sth.
like 0,1,2,3,3,0 for a face.

So I looked in the manual but didn`t find a explanation for this.

So at the moment I only take the cells where it->second is 3 and it
works but without a good feeling.

Can you give me a short explanation?

Best
Dennis



Archive powered by MHonArc 2.6.16.

Top of Page