Some more refactoring near CutPolygonWithPlane.