Shatter command not shattering the same

I’m still new to grasshopper so apologies for the lack of neatness in the script.

So I want to shatter a couple of circles (one of which is moved up the Z axis) through a line so that I end up with two arcs.
This could be achieved for one set of my circles but not the other.
This is what the bigger circle is shattered into

However when I replicate this for the inner circles this is what I get:



(I know the code doesn’t show everything, the full code is underneath. This is just to show which shatter command was used for the inner circle)

This is the outcome I wanted:


However if I used the other parameter I have set (param B), the set of points is still the full circle:

Any help is appreciated.

Here is my full script.


algorithmic (1).gh (34.9 KB)

Change the index of the second set and clean your definition because it is ugly and overdone.


Hide everything irrelevant, show only the heart of the matter, guide even by circling the problem with the pen.