I’m trying to make a script that places H columns along a polycurve with an offset to the left or right.
So far that works. But now I wan’t to rotate these columns so that the H, in this case, is perpendicular to the curve. Now they are oriented to the projects XY direction.
The columns are generic models. So the element location solution works perfectly.
Now my problem is to find the correct rotation. My thought was to get the vector between the point on the original curve and the offset curve and than get the angle between that vector and the 1,0,0 vector. But because of the length difference in the curves, due to the offset, the points are shifted so the point to point vector isn’t perpendicular to the original curve. as you can see in this image.