Clipper Intersection merging shapes

Hi, so I was doing a parametric tiling operation where I have multiple rectangular tiles that need to be placed inside a surface with multiple holes. So, through surface collider I have managed to separate the tiles that are in the surface and the tiles that are on the boundary of the surface. When I try to split the surfaces such that I only keep the tile area that is inside the big surface tile keep combining and don’t remain separate. I used the clipper2 boolean command

attaching a screenshot without a gh file does not often help solving problems, but it’s a good starting point

in your specific case you can try grafting the Polylines A input (which I guess is the one that contains your small tiles, otherwise you can try to graft the other one)

Sorry, It’s my first time posting on this forum. I was about to attach the GH file, but wasn’t able to edit
extra.gh (23.0 KB)

I tried grafting it and it worked I think. Thank you!

no problem, welcome to the forum :slight_smile:

with the Rhino and Grasshopper file opened on your computer, you need to right click on the initial Surface parameter (which contains your Surface/s) and chose Internalise data

at that point save the gh file again, and reupload

you can read this for a -probably- better explanation: Help Us Help You - #10

1 Like

Thank you again. Here is the internalised File.
extra.gh (28.9 KB)

Hey again. the last file I did was kind of a test and now I tried doing the exact same thing but came up on an error
Test.gh (39.7 KB)

the error you are getting self-explains that the problem is “not all your curves are polylines”

indeed, if you check curve at index 0 it has arcs:

the easiest solution is to transform that curve into a Polyline with ToPoly like:


[also added a Boundary Surface after the ClipperBoolean because those curves were not succesfully cast as Surfaces on their own)

Test_inno.gh (42.4 KB)

one important note: going from an Arc to a Polyline means that a curve is shattered into a more or less defined array of straight segments (but Clipper is build to work with polylines only, so I guess you were fine with that from the start :smiley: )

Test_jvs01.gh (42.9 KB)