Help with Stone Wall - Grasshopper

I was following a tutorial for a stone wall in grasshopper but for some reason i did not get the same result as the guy in the video. Could anyone help me pls, whats wrong with my code?
The first image is what I was supposed to get and the second one is what I got.
This is the tut I watched: https://youtu.be/H8uBj52GIfk?si=IGKq697ZQC-fbdXx

Stone Wall.gh (22.2 KB)

I think it depends a lot on the shape of the base curve.
I had also found an anomaly of that kind, but with other curves the problem does not arise.
I don’t know how this strange solid is formed, but in any case it can be eliminated.
Eventually publish your definition with the curve that causes this error internalized.

Stone Wall a.gh (19.8 KB)

when you create the bounding box that will contain the random 3D points and the 3D Voronoi, my advice is to make it slightly bigger than necessary, like here it’s scaled-up 20%, but like 5% is already more than enough

Stone Wall_inno.gh (25.9 KB)

this disallows for Booleans between Breps that will happen later in the definition to have shared coplanar faces, which sometimes causes boolean failures

this monster that appears in your screen is indeed a failed Solid Intersection that is then scaled with center on a point somewhere next to where the arrow is pointing :slight_smile:

I also try this way to get an alignment of the “stones”.

Stone Wall a.gh (18.6 KB)