Sort out the normal direction of the intersection surfaces.