I want to do some simple projection and intersection operations, and I would like to find a simpler system.
for example, i want to find the perpendicular from a point to a line, and then the foot of the perpendicular.
And I would like this to work for any line in space from any point in space, not belonging to the line.
I found a solution that works in the case where the line lies on the XY plane and the point is any, but I am not sure if it works in the other more general cases.
project a point on a line.gh (13.9 KB)
Does anyone know how to do this in a simpler way? and also for this kind of operation are there other faster procedures?
I would use Curve Closest Point if you are sure the perpendicular will fall on the Line:
project a point on a line_Re.gh
otherwise I’d go for something like this:
project a point on a line_Re_Re.gh
thank you @inno.
The first solution it’s ok but it’s a particular case.
The second it’s ok, but why did you use the
reverse command? in my opinion i think it isn’t necessary, because i saw that
line intersect themselves in both directions.
Anyway that’s cool.
Anyway It’s quite tricky working with planes.
I made several attempts, but I hadn’t really thought about this solution!
your final solution.
project a point on a line.2.gh
Maybe there are other ways?