Browse Source

v.voronoi: fix unsuccessfull hack

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@57182 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 11 years ago
parent
commit
605975fa1d
1 changed files with 0 additions and 12 deletions
  1. 0 12
      vector/v.voronoi/sw_geometry.c

+ 0 - 12
vector/v.voronoi/sw_geometry.c

@@ -117,17 +117,6 @@ int right_of(struct Halfedge *el, struct Point *p)
 	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 @@ int right_of(struct Halfedge *el, struct Point *p)
 	    if (e->b < 0.0)
 		above = !above;
 	}
-#endif
     }
     else {			/*e->b==1.0 */
 	yl = e->c - e->a * p->x;