[GRASS-SVN] r55846 - grass/trunk/lib/vector/Vlib

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 17 02:33:44 PDT 2013


Author: mmetz
Date: 2013-04-17 02:33:44 -0700 (Wed, 17 Apr 2013)
New Revision: 55846

Modified:
   grass/trunk/lib/vector/Vlib/break_lines.c
Log:
Vlib: temp fix for Vect_break_lines() confirmed

Modified: grass/trunk/lib/vector/Vlib/break_lines.c
===================================================================
--- grass/trunk/lib/vector/Vlib/break_lines.c	2013-04-17 09:16:26 UTC (rev 55845)
+++ grass/trunk/lib/vector/Vlib/break_lines.c	2013-04-17 09:33:44 UTC (rev 55846)
@@ -289,6 +289,7 @@
 	    /* bline: line to break */
 
 	    if (j == -1) {
+		/* check first for self-intersections */
 		if (aline <= nlines_org)
 		    bline = aline;
 		else
@@ -319,12 +320,9 @@
 	    if (!break_a && !break_b)
 		continue;
 
-	    /* check intersection of aline with bline only once */
-	    if (0 && break_a && break_b &&
-	        aline > bline &&
-		(!List_ref || b_is_ref)) {
-		continue;
-	    }
+	    /* DO NOT check intersection of aline with bline only once
+	     * because it can happen that one line is broken, but not 
+	     * the other line, in which case some breaks are not detected */
 
 	    G_debug(3, "  j = %d bline = %d", j, bline);
 



More information about the grass-commit mailing list