Cull pattern problem is driving me crazy. Please help

Hi everyone,

I’m new to Grasshopper, and while I can navigate the general logic somewhat, there’s always a deceptively simple problem that seems to throw me off - I’ve been on this one for hours.

Simply put, I’m trying to create an adaptable checkered pattern around a cylindrical shape.

There’s two ways I thought to do this. 1) was to create a pattern on a 2D plane and then wrap it round a cylinder. 2) was to create cylindrical layers of alternating panels. I wanted to be able to manipulate the size of each layer lengthwise so felt the latter would be more efficient.

So, I lofted two circles to created a surface and divided said circles to create lines to split the surfaces. Then I used a cull pattern to get rid of every other trimmed surface. However, while the pattern goes 1010 for the most part, the start/end goes 1100 and I can’t figure out why.

If anyone could help, I would be really grateful. Thanks.




CHECKERS.gh (17.5 KB)

hi, despite this looks like quite a simple definition, in order to get help the best way is always to post your grasshopper file, in such a way anyone who wants to help does not have to first rebuild a definition identical to the one in your image, and then try to find where the problem is :slight_smile:

[edit] I think it might be easier to get chackboard panelization using domains:


Domain_Checkboard.gh (13.8 KB)

[edit] the reason why it looks weird when lines are used to split the loft is mainly due to the fact that the surface is a ring: the first splitting line alone does not create any panel, it just “opens” the ring
then, for each additional line, the surface gets splitted into a “whole” at index 0, plus smaller parts identified by the newcoming lines at index 1, 2, 3, etc
the end result is that the “whole” becomes the very last panel in your ring, and that does not work well with the culling pattern

2 Likes

Thank you for the reply Inno! I have uploaded my file in the post.

Seems you already rebuilt the definition and found an alternative (thanks again). I’m not too familiar with domains yet but I’ll have a look at the file and try and figure things out.

Although, I’m still a bit curious as to why my definition didn’t work so I can learn from it. Do you think you could have a look at my file?

[Edit: Man you move fast! You have my gratitude.]

1 Like

you can do something like this to sort the panels along -one of the two- curves based on their center points:

before:

after:


CHECKERS_Re.gh (17.0 KB)

the faster you move, the more gin tonics you can drink :heart_eyes:

2 Likes

I would send a gin tonic your way if I could. Legend.

Again, thank you so much man!

1 Like