Skip to Content.
Sympa Menu

cgal-discuss - Res: [cgal-discuss] Next Face

Subject: CGAL users discussion list

List archive

Res: [cgal-discuss] Next Face


Chronological Thread 
  • From: "Marcos R. P." <>
  • To:
  • Subject: Res: [cgal-discuss] Next Face
  • Date: Tue, 27 Oct 2009 05:21:21 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.br; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=iNl6GfGpk+t4cDsNTSN7nZ9OF9yAhwAByfhmuz6YyTD1Wx8gvl1vhUqZpShoqf/dIxxnXZ6IceN/HFOcRoJ/J5/lY5YJCGPuO+6xUnQd6BBWONGUzpsEDLj9nFHDHiJpg9QywlAyVoBSyNa6qe0El86xJedvIsArtOztbbN9v1U=;

This is code of print_faceVertices

 

void print_faceVertices( Face_handle* f )

{

Ccb_halfedge_circulator ec_start = (*f)->outer_ccb();

Ccb_halfedge_circulator ec = ec_start;

do

{

print_endpoint(ec,false);

} while ( ++ec != ec_start);//fim do while

}//fim print_faceVertices

 

So, in this case, f is a Face_handle. I'll try change function to receive a Face_iterator, but I don't know how Ccb_haledge_circulator will works.

 

This is the code of print_endpoint:

 

void print_endpoint(Halfedge_handle e, bool is_src)

{

std::cout << "\t";

if ( is_src )

{

if ( e->has_source() )//se aresta tem incio

std::cout << "x = " << e->source()->point().x()

<< ", y = " << e->source()->point().y() << std::endl;

else

std::cout << "ponto ao infinito" << std::endl;

}

else

{

if ( e->has_target() )//se aresta tem fim

std::cout << "x = " << e->target()->point().x()

<< ", y = " << e->target()->point().y() << std::endl;

else

std::cout << "ponto ao infinito" << std::endl;

}

}//fim print_endpoint




De: Samuel Hornus <>
Para:
Enviadas: Ter, Outubro 27, 2009 9:06:54 AM
Assunto: Re: [cgal-discuss] Next Face


Perhaps making use of the Facet_iterator "fit" that you increment, would have the desired effect?
As in: print_faceVertices( &fit );

And to be sure to grab only bounded faces, use bounded_faces_begin() and bounded_faces_end().
Then, be sure to read the documentation of vd.bounded_face() to understand why the program do as you
describe.

Sam

On 26 oct. 2009, at 18:43, Marcos R. P. wrote:

> VD::Face_iterator fit = vd.faces_begin();
>
> for( ; fit != vd.faces_end(); ++fit )
>
> {
>
> std::cout << "\nFace " << std::endl;
>
> print_faceVertices( &vd.bounded_face() );
>
> std::cout << std::endl;
>
> }//fim for
>

--You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss


Veja quais são os assuntos do momento no Yahoo! + Buscados: Top 10 - Celebridades - Música - Esportes


Archive powered by MHonArc 2.6.16.

Top of Page