Grasshopper

algorithmic modeling for Rhino

Hello,

I created a surface via a sweep and then took some section cuts and want to offset every other curve to be smaller and create a pleated wall.  I have the curves but they offset in random directions.  How can I make sure they all go in the same direction - I've searched a bit and can't seem to find a post. 

Below is my ultimate goal done in Rhino:  I'm doing this as a personal project to build my grasshopper skills so let me know if my script (attached) could be improved.  

Thanks so much for any help!

Views: 17561

Attachments:

Replies to This Discussion

The side of curve offsets depends on the curve direction in the offset plane. If you don't specify a plane for the offset, grasshopper will try and find one that best describes the curve, but this plane may be flipped compared to its neighbors.

But even if the planes are all orientated in the same way, the curves may still be inconsistent. You may be able to unify curve directions by flipping them all using a single guide curve. I can't test now as I'm on an iPad...

Following David's advice....

Attachments:

Thanks so much for this!! There were so many things that I learned by reconstructing it.

This is magic! Thanks very much David and Hyungoo! Incredibly useful!!!

Grasshopper 1.0.00007 produces flipped curves with Hyunqsoo Kim's definition. don't know why.

Corrected by flipping the original dispatched curves.

Many thanks, I had this problem and now it's solved. 

run 3

If anybody is reading this thread still, I found that using the scale component works great.  To Scale a curve from it's center point (or offset it) all you have to do is scale an object using the area component to get an object's center point

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service