Grasshopper

algorithmic modeling for Rhino

I'm having trouble offsetting curves that roll in 3D. These same curves offset easily when baked and offset manually in rhino. I've read a good deal of the archives related to this problem and am wondering if there is a way to add a vector parameter to the offset component to replace the point pick hint that you give rhino when modeling manually? Or have these problems been resolved and I'm missing something?

Views: 3129

Replies to This Discussion

Hi Matthew, I think I got a workaround.
Attachments:

Thanks Pieter,

 

Nice approach. At the moment I only see it offsetting to the inside of a closed curve. But I imagine that could be fixed. I also get weird behavior from the sweep command. It will only evaluate the sweep at a couple distinct values along the slider. That makes no sense to me. I have to play with it more and see what the issue is.

Here's a script that uses a different offset method than the one in the normal offset component. It takes a curve to offset, an offset plane, a point defining the offset direction (like where you click in the rhino offset dialog) and an offset distance.
Attachments:

Andrew,

 

This component/ definition has been fantastic. In the end it has solved a lot of problems for me. Many thanks.

 

Matt

Glad it has helped!

Hi Andrew,

Hi David too,

 

I don't understand why the offset command in C# work so perfectly while the one in GH really suck. I had a bunch of 4 point polygon, (projected to XY to ensure planarity, rebuilt again by the vertex, so they should be very clean) half of them fail on GH offset component.

The line in C# by Andrew had all of them nicely done.

 

I don't understand? Aren't the libraries the same?

 

Cheers

Victor

Hmm, I used an open curve to make the previous definition. I don't know (anybody..?) why this doesn't work with a closed curve though.
But I made some changes. Any comments are welcome!
Attachments:

Andrew,

 

Thanks much for this. Am, looking forward to trying it out when I get home. Sounds like just what I need.

 

Matt

Pieter,

 

Thanks to you as well. Again, I'll take a look at what you sent shortly.

 

Matt

Andrew, Pieter

 

These both work very nicely. Andrew your solution gives a nice amount of control over how the curve offsets and easily offsets to either side by evaluating the midpoint of each circle instead of using the endpoints. Thanks!

 

Matt

ffffffound

very useful piece of code

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service