Splitting a polygon or a box recursively at the median position of a pointcloud.
The inner loop runs over "foreach connected piece" instead of primitives. A group node filters the points by bounding objects ie. the corresponding piece. The clip node gets a third direction plane with modulo 3 accordingly. Split, Merge and Polyfill will make sure the boxes are separated and closed.