[geos-devel] Comparing two QuadEdge objects

Sandro Santilli strk at keybit.net
Fri Jul 12 23:13:12 PDT 2013


On Fri, Jul 12, 2013 at 08:52:24PM +0530, vishal tiwari wrote:
> This part of code in getVoronoiCellPolygon, :
> 
> QuadEdge startQE = qe;
>     do {
> //      Coordinate cc = circumcentre(qe);
>         // use previously computed circumcentre
>         Coordinate cc = qe.rot().orig().getCoordinate();
>       cellPts.add(cc);
> 
>       // move to next triangle CW around vertex
>       qe = qe.oPrev();
>     } while (qe != startQE);
> 
> The while condition is comparing two QuadEdge objects for not being equal.
> So i need to override the != operator. How do it do it?

I suspect that's a by-ref check, can you verify ?
Linking between QuadEdges are by pointer, aren't them ?

--strk;


More information about the geos-devel mailing list