public void flip() { vertices.Reverse(); for (int i = 0; i < vertices.Count; i++) { vertices[i].flip(); } plane.flip(); }
// Convert solid space to empty space and empty space to solid space. public void invert() { for (int i = 0; i < polygons.Count; i++) { polygons[i].flip(); } plane.flip(); if (front != null) { front.invert(); } if (back != null) { back.invert(); } CSGNode temp = front; front = back; back = temp; }