Subject: CGAL users discussion list
List archive
- 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 inciostd::cout <<
"x = " << e->source()->point().x()<<
", y = " << e->source()->point().y() << std::endl; elsestd::cout <<
"ponto ao infinito" << std::endl;}
else{
if ( e->has_target() )//se aresta tem fimstd::cout <<
"x = " << e->target()->point().x()<<
", y = " << e->target()->point().y() << std::endl; elsestd::cout <<
"ponto ao infinito" << std::endl;}
}
//fim print_endpointDe: 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
- [cgal-discuss], Sterpa, 10/19/2009
- Re: [cgal-discuss], Laurent Rineau (GeometryFactory), 10/19/2009
- Re: [cgal-discuss], Ariel Baez, 10/19/2009
- Re: [cgal-discuss], Marco Aurelio Sterpa, 10/19/2009
- Re: [cgal-discuss], Ariel Baez, 10/19/2009
- <Possible follow-up(s)>
- [cgal-discuss], Marcos R. P., 10/26/2009
- [cgal-discuss] Next Face, Marcos R. P., 10/26/2009
- Res: [cgal-discuss] Next Face, Marcos R. P., 10/27/2009
- Re: [cgal-discuss] Next Face, Samuel Hornus, 10/27/2009
- Res: [cgal-discuss] Next Face, Marcos R. P., 10/27/2009
- Res: [cgal-discuss] Next Face, Marcos R. P., 10/27/2009
- Res: Res: [cgal-discuss] Next Face, Marcos R. P., 10/28/2009
- [cgal-discuss] Next Face, Marcos R. P., 10/26/2009
- [cgal-discuss], Zohar Levi, 10/29/2009
- Re: [cgal-discuss], Laurent Rineau (GeometryFactory), 10/19/2009
Archive powered by MHonArc 2.6.16.