Grasshopper

algorithmic modeling for Rhino

Hi everybody.

As you can see on the picture, I have a not-sorted network of curves and I need to create an edge surface for each "virtual" not-planar subsurface (curve patch) created by the curve-network.

How can I achieve this result? I think it's impossible without sorting the curves, but I don't know how.

many thanks

D.

Views: 445

Replies to This Discussion

Hey Davide - 

Attached is my attempt. It is a little bit finicky due to its reliance on the Surface Split component, but if your input is as simple as the picture shown it might due the trick. It also depends on the fact that you're only producing quadrilateral regions.

My definition basically projects all the curves to a flat plane, creates a single surface in that plane, splits the surface with the planar curves, identifies the 4 edges of each closed region, and matches that back to the original curve network, selecting the appropriate edges from which to create an edge surface. 

If your input is any more complicated than what I have in the example file then this definition may not work for you, but hopefully at least some of the strategies inside for sorting the edge curves will be useful. Let me know if I can explain anything further!

Andrew

Attachments:

Hi Andrew,

thank you so much for your help. I'm "studyng" and testing your definition...it seem very smart and useful!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service