<div dir="ltr">Hey strk,<div style>I tried to compare them my pointers as:  qe != (QuadEdge*)&startQE, but this condition is always true and goes into an infinite loop.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On 13 July 2013 11:43, Sandro Santilli <span dir="ltr"><<a href="mailto:strk@keybit.net" target="_blank">strk@keybit.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fri, Jul 12, 2013 at 08:52:24PM +0530, vishal tiwari wrote:<br>
> This part of code in getVoronoiCellPolygon, :<br>
><br>
> QuadEdge startQE = qe;<br>
>     do {<br>
> //      Coordinate cc = circumcentre(qe);<br>
>         // use previously computed circumcentre<br>
>         Coordinate cc = qe.rot().orig().getCoordinate();<br>
>       cellPts.add(cc);<br>
><br>
>       // move to next triangle CW around vertex<br>
>       qe = qe.oPrev();<br>
>     } while (qe != startQE);<br>
><br>
> The while condition is comparing two QuadEdge objects for not being equal.<br>
> So i need to override the != operator. How do it do it?<br>
<br>
</div>I suspect that's a by-ref check, can you verify ?<br>
Linking between QuadEdges are by pointer, aren't them ?<br>
<div class="HOEnZb"><div class="h5"><br>
--strk;<br>
_______________________________________________<br>
geos-devel mailing list<br>
<a href="mailto:geos-devel@lists.osgeo.org">geos-devel@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geos-devel" target="_blank">http://lists.osgeo.org/mailman/listinfo/geos-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Vishal Tiwari<div>Undergraduate</div><div>Computer Science and Engineering</div><div>Lab for Spatial Informatics</div><div>IIIT-Hyderabad</div>
</div>
</div>