Region union metaball

Hi everyone,

Trying to merge these co-planar surface, I’ve tried to select only those who collide to Region Union them but it wont work.

Again my lack of knowledge in data tree, if someone can help, here definition :

region_union_metaball.gh (21.8 KB)

you have 41 planes and the Metaball outputs 82 = 41 * 2 branches, that’s a big hint :slight_smile:

the main issue is shift+merging different stuff into the very same input, something that destroys the coherency of the data trees

see how the P and C inputs data structure is staggered:

having two main branches {0} and {0;0;0} means that each of the 41 planes will be intersected with all the metaballs in {0}, then each of the 41 planes will be intersected with all the metaballs in {0;0;0}

indeed the output tree is {0;0…40} and {1;0…40}:

path mapper {A;B} → {B} solves it:

region_union_metaball_inno.gh (20.0 KB)