Question: General non-algebraic solution to finding a point on the line of the intersection of two planes. I am having trouble implementing this algorithm: 1/ Given

General non-algebraic solution to finding a point on the line of the intersection of two planes.

I am having trouble implementing this algorithm:

General non-algebraic solution to finding a point on the line of the

1/ Given planes pl and p2, compute line L = p+t*d of their intersection. // Return 0 if no such line exists int IntersectPlanes (Plane p1, Plane p2, Point &p, Vector &d) { // Compute direction of intersection line d = Cross (p1.n, p2.n); // If d is (near) zero, the planes are parallel (and separated) // or coincident, so they're not considered intersecting float denom - Dot(d, d); if (denom

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!