Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hi Everyone.
From the following :
Co-planar or non-Co-planar with the 4 points ?
Thanks in advance for your time and help.
Best Regards.
Loi.
Solved! Go to Solution.
Hi,
A small program that takes the first three points expressed as vectors and calculates the equation of that plane defined by those three points.
Program then calculates the distance from the fourth point represented as a vector from the plane of the other three.
If the distance is zero the four points are coplanar. If there is a positive distance then points are not coplanar.
Hi,
A small program that takes the first three points expressed as vectors and calculates the equation of that plane defined by those three points.
Program then calculates the distance from the fourth point represented as a vector from the plane of the other three.
If the distance is zero the four points are coplanar. If there is a positive distance then points are not coplanar.
@terryhendicott wrote:
Hi,
A small program that takes the first three points expressed as vectors and calculates the equation of that plane defined by those three points.
Hmmm, and what if the first three points happen to lie on a straight line (colinear), but the fourth does not? In this case the four points would be coplanar, but your program returns an error because of a division by zero (the "normal vector" is the zero vector here).
And even if all four points should be co-linear and they don't define a plane uniquely, the program would have to come to the result that they are of course also co-planar (even in an infinite way).
BTW, is there a special reason why you don't use ?
Her is a function to check for coplanarity of a vector of point coordinates of arbitrary length. I hope that I got all special cases.
This boolean function returns 1 if the points are coplanar and 0 otherwise.
"coplanar2" is to be preferred as it also deals with the numerical inaccuracies which may occur when dealing with real numbers.
Many Thanks, Terry.:
Best Regards.
Loi.