Create third point from 2

Hello everyone!!

I hope you can help me. From point 1 and 2 indicated in blue I want to generate point 3 indicated in red, thus generating a right triangle and every time I rotate these two points in position, point 3 is always generated, I have tried with the ClosestPointTo node, but it doesn’t work for me.

Try this script
Home.dyn (26.5 KB)

You just Select the required lines … it will generate the required third point.

2 Likes

Hi @jgperu_rev01
There is no one solution. Point 3 can be at any position to generat triangle. What is the criteria?

2 Likes

hello, you draw a line pt 1 pt2
bounding box around the line
bounding box min pt3 if proj x and y

else circle point middle line pt1 and pt2
point 3 () on 1/4 circle with vector line from pt1 in projection on circle
edit:
The somewhat rapid response was only valid for quadrant III.

Here is script to manage the 4 quadrants and approach solution if direction imposed


script:
20 Novembre forum anglais.dyn (42.5 KB)

Cordially
christian.stan

1 Like