Projecting Points Onto A Plane Given By A Normal And A Point June 11, 2024 Post a Comment I am using the following function to try to project bunch of vertices onto a plane. Basically mapping a polyhedron to polygon. My plane is defined by a normal vector and a point (cSolution 1: Your formulaProj(P) = P-((P-Centroid).n)n Copyis correct.But your implementationdotscalar = np.dot(np.subtract(centroid,vertex),normalvector) Copyis not. You swapped centroid and vertex. Thus, instead of moving the point onto the plane, your algorithm doubles its distance from the plane. Share Post a Comment for "Projecting Points Onto A Plane Given By A Normal And A Point"
Post a Comment for "Projecting Points Onto A Plane Given By A Normal And A Point"