Mesh where lines are rotated to the medium angle between connected faces

Greetings, how can i change the rotation of all mesh edges so that they torsion angle is the medium between connected faces? I want to use it for structural calulation of a gridshell and the beams need to be rotatet. At the moment all lines in one directon have the same rotation angle


Check out this topic with a script @danielpiker:

And look at this nice UFO…

Hello Martin, thanks for the reply. I already saw the topic and its useful to get the edge normals but in the first place i need to create a mesh where each edge has an individuall normal. I could not find a solution to generate the mesh in these topics or did i over miss something here?

I don’t think a mesh edge itself can have a normal. What doesn’t work with the script in the linked topic?

Oh okay, i tought there would maybe be a way to give the line itself a rotation. But if that is not the case i can work with the calulated angles.
I just checked saw that i can input vectors or sometimes angles for axis system of the structural elements. Then i need to import the grashopper components from D. Piker into my file and assign the data to my structural data.

I’ll see how far I get with it
thanks for now

I got some useful help on a similar topic recently:

The custom components in that thread will do what you need, in some form or another.

Just bear in mind that edge normals will twist across the node depending on the curvature of the shell itself, so your node design has to accommodate that. Only regular shapes can have well-behaved edge normals around each vertex. Platonic solids, prisms etc.

For programs where I need to input a vector for the axis of the structural element, the script from Piker works perfect (see beams in picture).

But some others want the torsion angle of the element. Does someone know how I can create the initial vectors in GH? If I got them, I guess I can simply subtract the normal vector from the script and get the torsion angle around the axis of the line.