algorithmic modeling for Rhino
Hello to everybody,
I have a question about a problem.
I would like to work by a cnc machine the group of 3D lines that I attached in the image below.
To generate the program I have to select each single line and that means a lot of time and work to do.
Is it possibile, using grasshopper, to join the lines in some kind of order?
For example, I would like to join all the lines in horizontal bands then other lines in vertical bands and the remain lines in any other directions.
Thank in advance for your help.
Tags:
Here's an approach that uses the dot product of the average vector for a segment with the Z Unit Vector to distinguish between horizontal and vertical.
This example has 3 categories Horizontal Vertical and between defined by the consecutive domain sliders. It then separates them onto different branches of a data tree.
For this particular example you will need Weaverbird for one of the components but if you don't have it just simply select you curves in the Input Curves Param.
Dot Product results in a value between 0 and 1 the value will be close to 0 if perpendicular and 1 if the same
Welcome to
Grasshopper
© 2025 Created by Scott Davidson.
Powered by