[GRASS-SVN] r57182 - grass/trunk/vector/v.voronoi

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 16 10:30:55 PDT 2013


Author: mmetz
Date: 2013-07-16 10:30:55 -0700 (Tue, 16 Jul 2013)
New Revision: 57182

Modified:
   grass/trunk/vector/v.voronoi/sw_geometry.c
Log:
v.voronoi: fix unsuccessfull hack

Modified: grass/trunk/vector/v.voronoi/sw_geometry.c
===================================================================
--- grass/trunk/vector/v.voronoi/sw_geometry.c	2013-07-16 17:30:05 UTC (rev 57181)
+++ grass/trunk/vector/v.voronoi/sw_geometry.c	2013-07-16 17:30:55 UTC (rev 57182)
@@ -117,17 +117,6 @@
 	return (0);
 
     if (e->a == 1.0) {
-	double xl = e->c - e->b * p->y;
-	t1 = p->x - xl;
-	t2 = p->y - topsite->coord.y;
-	t3 = xl - topsite->coord.x;
-	above = t1 * t1 > t2 * t2 + t3 * t3;
-#if 0
-	if (e->b < 0.0)
-	    above = !above;
-#endif
-
-#if 0
 	dyp = p->y - topsite->coord.y;
 	dxp = p->x - topsite->coord.x;
 	fast = 0;
@@ -149,7 +138,6 @@
 	    if (e->b < 0.0)
 		above = !above;
 	}
-#endif
     }
     else {			/*e->b==1.0 */
 	yl = e->c - e->a * p->x;



More information about the grass-commit mailing list