algorithmic modeling for Rhino

Find the curves whose 2 end points coincide with an sorted group of points.

Hi all

How can I find the curves whose TWO end points coincide with a sorted group of points.

I started evaluating the closest points with zero distance, the idea is to find the curves that belong to each branch and then join to get closed planar curves.


Views: 973


Reply to This

Replies to This Discussion

Hi Erick-

I've attached an approach that may simplify things a bit. I'm using "flip last matrix" from tree sloth, but it's just as easy to use the path mapper.  The advantage to using flip last matrix is that the input data structure can change and you won't have to explicitly adjust it as you would the path mapper...essentially it identifies and uses the last path index that has multiple unique values.

I'm curious what method you used to group the points together initially...that really seems like the trickiest part of the definition!


thank you very much David interesting solution and indeed I used Trevor Patt script, but your curve network is TOO fast! many thanks again!






  • Add Photos
  • View All

© 2019   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service