// Remove all polygons in this BSP tree that are inside the other BSP tree // `bsp`. public void ClipTo(CSG_Node other) { this.polygons = other.ClipPolygons(this.polygons); if (this.front != null) { this.front.ClipTo(other); } if (this.back != null) { this.back.ClipTo(other); } }
// Remove all polygons in this BSP tree that are inside the other BSP tree // `bsp`. public void ClipTo(CSG_Node other) { this.polygons = other.ClipPolygons(this.polygons); if (this.front != null) { this.front.ClipTo(other); } if (this.back != null) { this.back.ClipTo(other); } }