Grasshopper

algorithmic modeling for Rhino

Unevenly copying brep along a curve with individual rotations and fixed number of breps

Dear all, I'm trying to achieve the following: given "curve A", copy "brep B" along that curve with uneven spacing, a fixed number of breps, and individual rotation for each one.

By searching the forum, so far, I've come up with this: my definition allows the brep to be copied a determined number of times by means of a step slider. However:

- how can I make the "array" (lets call it that) start at a given xyz point? (right now it starts in a point which has to do with the distance of the curve and brep from the origin, if I'm understanding things right);

- how can I set a fixed number of breps to be copied? Ideally I'd like the steps slider to control the number of breps;

- finally: how can I assign individual rotation to each copied brep? I think it must be something between the "eval" and the "move" components in the definition, but I'm not sure...

Thanks for the help and time. Still beginning with GH!

Views: 1059

Attachments:

Replies to This Discussion

Look into the rotate, frames, and orient components. Also, if interested my Pufferfish plugin has some nice components for interpolation between different oriented planes (check out the tween planes on curves components). http://www.food4rhino.com/app/pufferfish

will check, thanks!

Have a look at this.

Attachments:

Thank you very much! I'll learn a lot from your definition thats for sure. I just need to figure out how the "rotation angle step" works since I'd like it to represent a rotation degree (for eg. if it displays 90 I'd like the last object in the array to be rotated 90 degrees when compared to the first array object). I'll try to find a solution. 

Here is a small edit that controls via overall degree. 

Attachments:

And a bonus using pufferfish (whats interesting because of quaternion rotation - the rotation will always go in the direction of least resistance - so going past 180 the system will rotate the other direction overall) So if you want something that keeps spinning and spinning use the above method. If you want something that always interpolates directly from one angle to the other then use this one. 

Attachments:

And if you want to go multi rotational.

Attachments:
Thank you Michael for both examples. I have a lot to look at. I will firet concentrate on bare grasshopper but will definetely try Pufferfish.

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