Truss angles

I would like to find the angles of each of the diagonal members relative to the horizontal, this is so I can use method of joints/nodes to be able to calculate forces on the supporting structure. How should I do this?


rollercoasterfirstgo (1).gh (40.6 KB)

There is a native component which calculates the angle between two vectors. You can input the lines as vectors, and as the second vector use for example unit x vector to refer to X-axis.

I’d go for something like this: first find a nice spot in your definition where data is very well sorted

for instance here you have all your stacks of points sorted as shown, each different branch is a “tower”, and each sub-branch is a “Z-layer” of each tower, sorted bottom-up

this way it becomes easier to know which line is what, where it starts, where it ends
for instance, I want a diagonal line from previous level point 0 to next levelpoint 1:

or you can use that well-sorted data structure to measure angles directly with AngularDim:

or use the lines as vectors and measure the angle between them:

long story short, it all depends on your data structure :slight_smile:
rollercoasterfirstgo_inno.gh (50.8 KB)

1 Like

That is amazing thank you, from the list panel is there a way of determining at which point they are at along the track? As in I’m not sure where {2;1} is as a location.

something like this might work?


rollercoasterfirstgo_inno_Re.gh (48.0 KB)