algorithmic modeling for Rhino
Hello,
I searched through the discussion board, but haven't found how to select the closest curve to a point. There's mostly closest point explanations, but if I have, for example, the edges of 3 breps and a single point outside these breps, how can I select only the single closest curve in each brep to the point?
I know that when I get the edge curves, I can join them and extract the closest point for them, which lies on the edge I'm looking to select, but getting that specific edge selected seems to be eluding me.
Any ideas?
Kind Regards,
Aaron
Tags:
Hi Aaron,
the most obvious (to me anyway) approach would be to find the distance between all curves and the point. You can use the Curve CP component for this. Once you have a list of distances you use the Sort component to sort the distances while sorting the curves synchronously using the A parameter. After this the first curve in the sorted list is the closest, and the last curve the furthest away.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi, I have the reverse problem. I want to select a rectangle based on points generated by a bitmap.
I have a herringbone pattern of rectangles and a dithered gradient that should mark parts of the pattern. It should look like herringbone_detail.png but I get stuck if I want to couple the output of the dithered gradient and the rectangles. One way could be to make a list out of the rectangles because I use them to generate a point list for the imagesampler. I am stuck there however, although it should be fairly easy.
Any help would be greatly appreciated,
Casper Le Fèvre
Amsterdam, The Netherlands
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
© 2024 Created by Scott Davidson. Powered by