[GRASS-SVN] r30065 - grass/trunk/vector/v.generalize

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 10 14:21:39 EST 2008


Author: neteler
Date: 2008-02-10 14:21:39 -0500 (Sun, 10 Feb 2008)
New Revision: 30065

Modified:
   grass/trunk/vector/v.generalize/smoothing.c
Log:
another use of GRASS_EPSILON

Modified: grass/trunk/vector/v.generalize/smoothing.c
===================================================================
--- grass/trunk/vector/v.generalize/smoothing.c	2008-02-10 19:11:19 UTC (rev 30064)
+++ grass/trunk/vector/v.generalize/smoothing.c	2008-02-10 19:21:39 UTC (rev 30065)
@@ -166,7 +166,7 @@
 		continue;
 	    point_assign(Points, j, with_z, &p);
 	    d = point_dist(p, c);
-	    if (d < 0.0000000001)
+	    if (d < GRASS_EPSILON)
 		continue;
 	    d = (double)1.0 / d;
 	    dists += d;



More information about the grass-commit mailing list