Grasshopper

algorithmic modeling for Rhino

align multiple planes to multiple direction vectors

Hi All,

I hope one of you will be able to help. I am currently trying to create a number of interpolative curves to follow one overriding curve. I have set this up using square grids at perpendicular planes and moved each of the three points respectively.

I have got an issue however when I try to adjust the end tangent to reflect a revised x-axis based on the square grids rotation around the curve. To solve this I have tried to set xy planes to each of the 768 points and then re-align them to face the new direction. The problem I have is that I only have 64 x-axis direction vectors. This is causing the xy planes to not align correctly. Is there away to get 'x direction 0' to act on the first 12 planes, the 'x direction 1' to act on the next 12 etc etc?

I have included a crude sketch below to hopefully explain my problem further and attached my gh and rhino files. I hope this makes sense and I look forward to your suggestions.

Thanks in advance.

Paul


Views: 2407

Attachments:

Replies to This Discussion

Hello Paul,

There are a number of ways to do this, for example you can use duplicate data; the order toggle will alternate between:

1 2 3 1 2 3 1 2 3  and 1 1 1 2 2 2 3 3 3

Hope this helps

Andrei

Attachments:

Hi Paul,
howcome you're working with these dimensions (curve length is over 750000)? Maybe scale everything by factor 0.001? That way you'll be able to see if the resulting planes are oriented correctly:)
To align the 'sets' of (12) planes I've changed two things in your definition for now.

Attachments:

Hi Andrei and Pieter,

Thank you for your replies, both solutions seem to have done the trick. I will now try to use a similar method so as to make sure 'D3' (end point) for my smaller interpolative curves has the correct end tangent.

Thanks once again.

Paul

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service