Projecting points onto a plane

Hello all,

I need to project some points onto a plane (shortest distance). The thing that’s troubling me is how to project the points onto the perpendicular plane without worrying about the projection direction.
For example, +X or -X direction vector

@theshysnail Try the Point.PullOntoPlane node from spring nodes.

The code block inside the node reads:

n = pl.Normal;
o = pl.Origin;
d = n.Dot(o.AsVector() ) - n.Dot(pt.AsVector() );
p1 = pt.Add(n.Scale(d) );
2 Likes

Thanks a lot. @AmolShah

1 Like