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

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Feb 10 12:33:05 EST 2008


Author: neteler
Date: 2008-02-10 12:33:05 -0500 (Sun, 10 Feb 2008)
New Revision: 30062

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

Modified: grass/trunk/vector/v.generalize/smoothing.c
===================================================================
--- grass/trunk/vector/v.generalize/smoothing.c	2008-02-10 17:09:01 UTC (rev 30061)
+++ grass/trunk/vector/v.generalize/smoothing.c	2008-02-10 17:33:05 UTC (rev 30062)
@@ -314,7 +314,7 @@
 
     /* we always operate on the segment point[i]..point[i+1] */
     while (i < n - 1) {
-	if (next > length || (length - length_begin < 0.0000001)) {	/* segmet i..i+1 is finished or too short */
+	if (next > length || (length - length_begin < GRASS_EPSILON)) {	/* segmet i..i+1 is finished or too short */
 	    i++;
 	    if (i >= n - 1)
 		break;		/* we are already out out of line */



More information about the grass-commit mailing list