Archived

This topic is now archived and is closed to further replies.

FancyZero

how to get a vertex projection of a plane

Recommended Posts

if there is a vertex(x,y,z) and a plane (a,b,c,d), how can I get the projected vertex of the plane (x2,y2,z2) [edited by - FancyZero on October 12, 2003 4:57:43 AM]

Share this post


Link to post
Share on other sites
From memory, the distance of the vertex from the plane is

dist = x*a + y*b + c*z + d

To find the point on the plane, perpendicularly below the vertex, subtract the plane normal multiplied by the distance :

x2 = x - a*dist
y2 = y - b*dist
z2 = z - c*dist

Is this what you''re looking for?

Share this post


Link to post
Share on other sites