Fix for #22
- handle degenerate cases better in CheckForRightSplice()
diff --git a/Source/sweep.c b/Source/sweep.c
index 112f1ef..4f3c53e 100755
--- a/Source/sweep.c
+++ b/Source/sweep.c
@@ -493,7 +493,7 @@
SpliceMergeVertices( tess, eLo->Oprev, eUp );
}
} else {
- if( EdgeSign( eUp->Dst, eLo->Org, eUp->Org ) < 0 ) return FALSE;
+ if( EdgeSign( eUp->Dst, eLo->Org, eUp->Org ) <= 0 ) return FALSE;
/* eLo->Org appears to be above eUp, so splice eLo->Org into eUp */
RegionAbove(regUp)->dirty = regUp->dirty = TRUE;