algorithmic modeling for Rhino
Hi Arthur,
sorry, are you asking how to connect six randomly placed points in a clockwise (counter-clockwise?) fashion?
If your points are always convex, you can use Convex Hull, otherwise you'll have to find a way to sort them.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thanks a lot David,
Is it possible to apply a similar logic when dealing with large lists of points ?
Sure, this code works for 2 or more points, no matter how many you supply.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thanks David,
Sorry I meant forming several six-sided polygons from a random list of points.
It will only generate a single polygon per point-list, so if you supply your points in lists of six, it will work as expected I think.
Do note I'm using the World XY plane to measure vector angles, you may need to change that to match your points.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Hi David,
I have four points and the above formula does not work for me. It possible that it does not work in some cases? Actually I cannot attach the files. When I am trying to attch the files, I get
in chrome.
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