<div dir="ltr">The method quadedge::QuadEdgeSubdivision::getVoronoiCellPolygon, requires a comparison between two QuadEdge objects for not being equal, that's y i need a comparison operator. I think CompareTo is implemented in Coordinate[1]. And the code is trying to compare the origin and destination coordinates of two QuadEdge. Should i compare the origin and destination coordinates to be same, in order to say the QuadEdges are the same?<div>
<br></div><div>[1] <a href="https://jts-topo-suite.svn.sourceforge.net/svnroot/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jts/geom/Coordinate.java">https://jts-topo-suite.svn.sourceforge.net/svnroot/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jts/geom/Coordinate.java</a></div>
<div><br></div><div style>Thanks,</div><div style>Vishal</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 12 July 2013 18:12, 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="HOEnZb"><div class="h5">On Fri, Jul 12, 2013 at 05:45:14PM +0530, vishal tiwari wrote:<br>
> Hey,<br>
><br>
> If i want to compare two QuadEdge objects, then i am comparing the elements<br>
> _rot , next , isAlive, data and vertex. As _rot and next are also<br>
> QuadEdges, it goes into a recursion, so i am using the break condition as<br>
> when both objects are NULL.<br>
><br>
> I just want to know if this is the correct way to do it? I am asking this<br>
> because i am having troubles in overloading the != operator for QuadEdge.<br>
<br>
</div></div>What do you need comparison operator for ?<br>
When needsd JTS implements a compareTo method, but I don't see any here:<br>
<a href="https://jts-topo-suite.svn.sourceforge.net/svnroot/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jts/triangulate/quadedge/QuadEdge.java" target="_blank">https://jts-topo-suite.svn.sourceforge.net/svnroot/jts-topo-suite/trunk/jts/java/src/com/vividsolutions/jts/triangulate/quadedge/QuadEdge.java</a><br>

<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>
</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>