Grasshopper

algorithmic modeling for Rhino

Hi,

Seems like a simple function that I can't find. Where is the component to close a curve? This will help when lofting or offsetting curves.

Thanks.

Kermin

Views: 24514

Replies to This Discussion

How do you want to close it? Move the endpoints together? Create a linear closing segment? Create a smooth closing segment?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,

The most likely case is "create a smooth closing segment" but having the 3 options available that can be specified would be useful.

I'm doing this to clean up reference curves from Rhino without messing with the original Rhino geometry because this geometry is being provided by another party.

I'm looking for equivalent function when we use the "CloseCrv" command in Rhino.

Thanks.
Ok, I can easily code up #1 and #2, smooth curve blending will require some Rhino SDK support.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi! Did that code get somewhere...?

If you cannot wait for a component you could try one of these grasshopper methods.

 

UPDATE

Attachments:
This works great for one curve. But what if I have many curves, some closed and some not? I am struggling to prepare the data in the right way for these snippets to work.
At lunch I'll have a look at sorting the path structures out for multiple curves.

Thank you, Danny. I managed to do it using your contribution here but would be keen to understand how to manage the paths in this example for the future. So, if you could add a comment or two it'd be most appreciated.

 

I also noticed that the joint curves are often not planar even if the inputs are planar (and even if the results look fairly planar). Which is surprising. Is there a way to keep them all in one plane?

 

Thanks again.

The only two thigs that needed changing were to graft the input curves and swap the Filters for the Pick N Choose component.

Attachments:
Thanks, Danny. This works.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service