Grasshopper

algorithmic modeling for Rhino

Hi guys!

I am new one here and still more or less beginner with grasshopper. I have some problem with my algorithm so I hope someone can help me with it.

Ok so, I have a set of surfaces- faces of the mesh and I have some lines in different directions projected on those surfaces. I needed to find an average direction among those lines and I managed to do it on one surface as an example, but now I have to apply it on the whole thing. The problem is my surfaces are on one list and lines on the other one, so when I apply my algorithm I get one average direction of all the lines, not one average direction separately for each face and set of lines on that face. 

I need help how to separate those things and how to make faces and lines on them work together independent from the others.

I dont know if my question is clear enough, let me know if I have to explain it better.

I am looking foreward to hearing from you.

Best,

Ani

Views: 780

Replies to This Discussion

those lines are the stress lines obtained. I need to define average stress direction on each face which will later lead some design. So I already have faces, I have lines on them, I have the example algorithm for one face. Now I need to understand how to make it work with all the faces and all the lines considered.

Sorry, I don't quite understand how the lines and non-planar "faces" intersect.

Here is a simple visualization of the line segments as vectors, anchored at surface points closest to the start of each line segment:

P.S.  You can use the 'Default/Manual' switch to enable the slider to set vector lengths independent of line segment lengths.

Attachments:

I have to obtain sth like this on the whole structure

maybe I try to fix intersection and then post the file again?

If you want to apply the same operation to multiple surface you should graft your surface input, like that grasshopper will do the same operation for each one of your surfaces. You just have to be careful of the structure of your two data trees. You need for each surface, one line. If you graft both, for each surface grasshopper will assign one line. 

Yes I tried with graft but there is a problem that if I graft just the srf list, it finds one single average direction and applies the same one to all the faces. If I graft also lines, it makes a mess. I think I need something more, like some function or condition saying that I am grouping lines according to faces and then applying this logics.. I dont know :/

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service