Subject: CGAL users discussion list
List archive
- From: Monique Teillaud <>
- To:
- Subject: Re: [cgal-discuss] Delaunay::Finite_edges_iterator give some rare
- Date: Wed, 08 Oct 2008 16:05:56 +0200
Hi Pamela
the manual says
typedef Triple<Cell_handle, int, int>
Edge; (c,i,j) is the edge of cell c whose vertices indices are i and j. (See Section 28.1.)
so, in the triple (there is an html link to this class from the previous lin in the manual)
- first is the cell c
- second is the index i of the first vertex of the edge
- third is the index j of the second vertex
the points you want are the points c->vertex(i and j)->point()
I don't know which points you reach when you use the functions cw and ccw, but indeed you are not reaching the correct points...
best
Monique Teillaud
pam wrote:
Hi all!
I'm working with delaunay 3D and I was able to view cells ans faces
but when I try to go trougth the edge I get some rare points that are
not part of my points.
Here is my code. Any idea of what is wrong?
Delaunay::Finite_edges_iterator edge;
Point pt0;
Point pt1;
for(edge=T.finite_edges_begin(); edge != T.finite_edges_end();edge++)
{
std::cout<<" Edges "<<j<<std::endl;
pt0=edge->first->vertex(Delaunay::cw(edge->second))->point();
pt1=edge->first->vertex(Delaunay::ccw(edge->second))->point();
std::cout<<pt0<<std::endl;
std::cout<<pt1<<std::endl;
j++;
}
Thanks in advance
Pamela
- [cgal-discuss] Delaunay::Finite_edges_iterator give some rare points, pam, 10/08/2008
- Re: [cgal-discuss] Delaunay::Finite_edges_iterator give some rare, Monique Teillaud, 10/08/2008
- Re: [cgal-discuss] Delaunay::Finite_edges_iterator give some rare, Olivier Devillers, 10/08/2008
- Re: [cgal-discuss] Delaunay::Finite_edges_iterator give some rare, pam, 10/08/2008
Archive powered by MHonArc 2.6.16.