I've written a solid-leaf BSP compiler and it's working fine except for one particular scenario:
If I position my convex hulls into the shape of a "room" (see the black rectangles in picture #1) and I encase all of them in one large hull (the blue box), then depending upon which order the splitter planes are selected I can end up with areas that are considered "empty" when they should be "solid".
Take for example the splitting planes chosen in pictures 2 through 5. If the splitting planes are selected in that order, then the interior of the "room" will be considered empty space. This is incorrect because everything is encased by the blue hull so everything should be considered "solid".
What is the correct way to deal with this?

