spend less time looping overSharedTriangles (presort)