[Wsplgen-commits] r102 - trunk/src
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jul 21 22:23:46 CEST 2008
Author: mrchip
Date: 2008-07-21 22:23:45 +0200 (Mon, 21 Jul 2008)
New Revision: 102
Modified:
trunk/src/file.cpp
Log:
Fehler bei der Bearbeitung der Begrezung behoben
Modified: trunk/src/file.cpp
===================================================================
--- trunk/src/file.cpp 2008-07-10 09:20:12 UTC (rev 101)
+++ trunk/src/file.cpp 2008-07-21 20:23:45 UTC (rev 102)
@@ -642,7 +642,7 @@
int ZI = (long)(Z * 100 + 0.5);
TInsideTyp InsideTyp = INSIDE;
- if (XyList) InsideTyp = XyList->IsInsideXYList(XL, YL);
+ if (XyList && XyList->size() > 2) InsideTyp = XyList->IsInsideXYList(XL, YL);
if (InsideTyp == INSIDE || InsideTyp == ON_LINE)
{
AnzKnoten++;
@@ -716,7 +716,7 @@
int ZI = (long)(Z * 100 + 0.5);
TInsideTyp InsideTyp = INSIDE;
- if (XyList) InsideTyp = XyList->IsInsideXYList(XL, YL);
+ if (XyList && XyList->size() > 2) InsideTyp = XyList->IsInsideXYList(XL, YL);
if (InsideTyp == INSIDE || InsideTyp == ON_LINE)
{
AnzKnoten++;
@@ -905,7 +905,7 @@
}
TInsideTyp InsideTyp = INSIDE;
- if (XyList) InsideTyp = XyList->IsInsideXYList(XL, YL);
+ if (XyList && XyList->size() > 2) InsideTyp = XyList->IsInsideXYList(XL, YL);
if (InsideTyp == INSIDE || InsideTyp == ON_LINE)
{
AnzKnoten++;
@@ -985,7 +985,7 @@
int ZI = (long)(Z * 100 + 0.5);
TInsideTyp InsideTyp = INSIDE;
- if (XyList) InsideTyp = XyList->IsInsideXYList(XL, YL);
+ if (XyList && XyList->size() > 2) InsideTyp = XyList->IsInsideXYList(XL, YL);
if (InsideTyp == INSIDE || InsideTyp == ON_LINE)
{
AnzKnoten++;
@@ -1066,7 +1066,7 @@
write_fortschritt("%d Elemente und %d Knoten geladen\n", ElementList->size(), NodeList->size());
write_fortschritt("%d Knoten insgesamt\n", AnzKnoten);
- if (XyList)
+ if (XyList && XyList->size() > 2)
{
write_fortschritt("->Löschen aussenliegender Kanten gestartet\n");
More information about the Wsplgen-commits
mailing list