public void Invert() { Polygons = Polygons.Select(x => x.Flip()).ToList(); Plane = new Plane(-Plane.Normal, Plane.PointOnPlane); if (Front != null) { Front.Invert(); } if (Back != null) { Back.Invert(); } var temp = Front; Front = Back; Back = temp; }
public void Invert() { foreach (var polygon in Polygons) { polygon.Flip(); } Plane = new Plane(-Plane.Normal, Plane.PointOnPlane); if (Front != null) { Front.Invert(); } if (Back != null) { Back.Invert(); } var temp = Front; Front = Back; Back = temp; }