Grasshopper

generative modeling for Rhino

The initial definition attached shows the growth of the structure using Grasshoper and Hoopsnake by controlling the angels of rotation.

Now I am trying to gain more control by making the growth follow the closest point on a given curve. At the moment I can identify the relative relationship of the component to the curve.
You can adjust the angle(a) and the position on the face(T) of the mesh. I can identify the result of (T) variable
If T>0.5 OR T<0.5 Then components do not intersect and grow further away from the curve it goes.
Any ideas how I can achieve it to grow to the closest point possible  on curve?
Thank you
Natasa

Views: 504

Attachments:

### Replies to This Discussion

Hi Natasa,

I managed :) but it is not on your definition (please see attached and below).

It should be the same logic for you: The "current" triangle rotate using as rotation axis the closest edge to the guide curve. When the t-value of the closest point to the curve from the edge is more than 0 then the t-value goes up by a certain amount and the closest edge used as rotation axis follows this new point...Have a look at the def, I am sure it will make more sense.

You might need to change the increment of the t-value on the curve otherwise it can stay stuck.

Hope this helps,

Arthur

Attachments:

Hi Natasa,

I have just updated my definition. It should work much better on any curve now :)

And I am also using the t-value of the closest point on curve.

Hope this helps,

Arthur

Attachments:

Hi Arthur,

Thanks a lot. I will have a look at it and let you know for any questions on the definition.

Nat

:)

Hi Arthur,

Just a quick question. I figure out that the way the definition you provided works with the mid point  of the edges of the triangles to the closest point on the given curve. An the next triangle mirrors on the edge of the previous one right?

If I apply the definition to my component though it doesnt work as the three points will be located on on line. Any suggestions how I can apply?

Thanks

Nat

by 雷锋

by 雷锋

by 雷锋

• View All