algorithmic modeling for Rhino
Hi,
I'm looking for a way to sort points along curves with a reference point.
As you can see in an image below, I need to sort points of surface outlines starting from bottom left corner vertices of surfaces.
With a reference point, the closest point to the reference point will be "0" and sorting points along curve would do the job.
Would this be possible?
Hope I could get help on this!
Thank you.
Dongyeop
Tags:
Hi.
I think it's possible and will be much easier if you have the source surface of sub-surfaces.
But, not sure unless look into your file personally.
Hi,
Thanks again for your response!
I avoided this problem in developing my definition which I had this issue originally, but I found that there was a similar question like this one.
http://www.grasshopper3d.com/forum/topics/sorting-remapping-surface...
Anyway, the screenshot below was what I was trying to resolve. I wanted to sort out vertices either "clockwise" or "anti-clockwise" starting from the point closest to the reference point. Ideally, I want to sort out vertices depending on the local coordinate like a surface that these curves are placed on rather than the world coordinate.
I included a GH file including this example. Do you have a good idea to solve this?
It's nice, but I still hope to find a way to sort out vertices based on a reference point.
I'm trying to find a fail proof solution in sorting out these vertices, which is not based on a manual operation in deciding "t" values on curves as in your solution.
Let's say all these curves are sub-surfaces of a bigger surface and the reference point is the bottom left corner of a bigger surface. By feeding this reference point, sub surface vertices are always sorted out correctly. In you example, "t" values are based on circles. I'm wondering if these "t" values can be on original curves and starting from the bottom left corner of each sub-surface.
I think this attached revised definition works as I described. It is based on your solution. Thanks a lot for your help!!
Thank you! I like the part getting the index of the closest point and shifting lists.
Thank you again!
It is very simple! I like it. Thank you.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by