fix skipping of degenerate triangles