Grasshopper

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.

Views: 337

Replies to This Discussion

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

Attachments:

Hi Danny,

I use the file that you attached and the result is exactly what I'm looking for...

Thank you very much for your help!

Now I try to understand how you obtain the result.... I'm a newbie of Grasshopper.

Thank you

Gianni

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service