# Create such a this pattern in grasshopper

After some study the pattern appears to a series of looping folded cells, with major and minor branches. This is, in theory, similar to a tree pattern, which Laurent has completed a method a few years ago to calculate using the shortest walk method. So, if you calculated each tree branch, and then flowed them along a random looping complex curve, it might work. The looping complex curve could be done using Dan Piker’s growing a line method using curve division.

15 Likes

I think the “trick” to do this is other than sphere collide (indeed), a bending resistence to the wire.
See this: Folding curve on a surface

thank you so much Michael.this movie whats i mean. actually i am looking for the tutorials or definition in grasshopper to make this.

thank you Riccardo for your help.it was close but there are some differences.would you help me like the movie which michael shared.

That’s why i am referring you to “how to ask effective questions

Please take a look at point 7.
" 7. This is not a do-my-work-for-me group
Many of us like to help, but it’s good to see effort on our part being matched by effort on your part. Questions in the form of “ I need to do X but cannot be bothered to try and learn the software ” will (and should) go unanswered.

Similarly, questions in the form of “ How do I quickly recreate this facade that took a team of skilled professionals four months to figure out? ” have a very low success rate."

So while you pose an interesting question and many on the forum are more than glad to help, you will have to investigate the issue first by yourself and once you reach a dead end, please feel free to post your situation, thoughts and the like and then we can move on from there.

Best of luck.

3 Likes

So, I am trying to implement the ‘growth’ of a few concentric curves, as suggested by this Zaha Hadid work. One thing I am not understanding is how Kangaroo handles multiple curves in a tree structure.
For example, say I have 4 concentric rectangles, as in the attached script, modified after Riccardo’s links to ‘folding curve on a surface’. Despite various attempts at a tree structure, the curves output are flattened, so I lose the distinction between the curves.
An approach which might work, but which seems clunky, is to run one curve at a time through Kangaroo, with the outer curve then becoming the bounds for the next inner curve. 4 nested loops of Kangaroo does not seem like a good idea, hence the question, how to do this through intelligent ree structure, or some other idea.
Here is what I have so far, again based on Riccardo’s workA,script alessia-multiple-curves-v1.gh (43.5 KB)
Any and all ideas are welcome.

To clarify, what I am trying to do is get the 4 curves to act as collision objects for each other, but not merge or overlap

Try this:
Growing_line_with_friction_V1.gh (55.2 KB)

In the other post I didn’t use Collider goal component (I was being stupid)
With Collider shapes are much better than with sphere collide.

Still, I used the same sphere collide to make a “friction” between the curves, maybe it’s good… i don’t know… (you can turn off the Collider that is using points if you want)

Many tweaks are still possible.

I think bending resistance should be dependent of the stretching of the curve (like a balloon inflated), but maybe i’m wrong.

To use more curve/points than this or by adding more complex logic you need to go to scripting.

(Is this the new “voronoi”? …)

22 Likes

Thanks Riccardo, I will try it.

thank you Riccardo and markz for your consideration.that was so helpful guys.

This is a great patch! thank you for sharing. I’ve learned a lot today!

Hi markz,
I try to open the file but it pop-outs a window says it needs multiplication plugin. But I can not find any of this on google. Is it a rhino 6 stuff? I am now only using rhino 5

It probably uses the new multiply component in Rhino6 which accepts a variable amount of inputs. You’ll have to replace the missing component with the R5 equivalent or upgrade to R6, sorry.

Hi David, thanks for your reply. I only find one threading on multiplication Update broke the multiplication component, but it does not work and conflicts with r5, I wonder if there is multiply component that is written out for r5, which will work on this situation.

This is the complete layout:

the only multiplication component used is at the mid-bottom.

Thank you Riccardo. The layout has been fixed and It works on my R5.

Hi Riccardo, I have been researching how to apply this pattern on different surface with using your GH script, but currently I have experienced the problem you might have been solved in your situation, which the curves are crossing over after generated by kangaroo.If there is any way to fill the polar of the sphere