Hello there,
I have a seemingly simple problem in Grasshopper and hope to find help here.
There are two points connected by a diagonal line (blue line). Now I would like to divide this line into two orthogonal lines. I already found this in another forum entry, but this function only works with deconstruct vector. This only works if you want to split in x and y direction. (Red line)
However, I must be able to determine the direction of the orthogonal vectors myself. (For example green line)
Hey Tim, thanks for your quick answer. Could you please explain to me how you would use this to solve this problem? I’m a beginner at Grasshopper, sorry. Do I have to change alpha?
Construct a circle centered on the midpoint of the line, with the line as a diameter. Lines from any point on the circle to the endpoints of the line will be orthogonal - it’s geometry.
Wow, I didnt think of that! Many thanks Ethan! Just one other point. One of the two new lines has to be on the same vector as a third line that I define seperatly. How can I set the angle? I guess I’m too bad in maths to solve this in the circle?
I think its because in your second example some pairs of initial points do not all lie in the same xy plane - take a look, the z’s sometimes differ, so the line connecting them will not intersect the circle, which is always in the xy plane.