Struggling with pattern script in grasshopper

I am trying to do this pattern

But i have no idea what is wrong with the script
square pattern.gh (19.3 KB)

I would be grateful for any assistance.


square pattern_re.gh (12.0 KB)

3 Likes

square pattern_re V0.gh (28.8 KB)
Data Tree still confuses me. I have to write it in two identical streams.
If anybody has an interest, please tell me how to simplify this definition. Thanks!

1 Like

if I have understood your concern correctly, the point is the Pattern data propagates only inside existing branches, it doesn’t propagate by creating new branches, but just repeats the last branch (as GH standard):

so we have to initialize a new pattern for each branch

square pattern_re V0_re.gh (27.2 KB)

1 Like

Thank you very much!

The tree structure of the two data is different, yet they can be fed into the Cull Pattern and everything is OK. It is confusing me.
I was close to your logic at first and then stopped here.
Why is it OK? Why?


letìs go crazy: jagged data trees for the win

renumbering one data tree at a time:

lets_go_crazy.gh (22.3 KB)

I like you script much clearer and simpler, thank you HS_Kim :pray:

I tried to redo your script and it turned all red and the shift (chess like) did not work. Please let me what I did wrong.
Practice from Kim.3dm.gh (12.5 KB)

A slightly different approach

checker_offset.gh (14.2 KB)

1 Like

So Cull Pattern component renumbers the path!


I understand! Thank you very much!