fixed a bug where a degenerate triangle causing the all polygons wrong orientation check to report false positives