cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

Co-planar or non-Co-planar with 4 points ?

lvl107
20-Turquoise

Co-planar or non-Co-planar with 4 points ?

Hi Everyone.
From the following :

Co-planar.PNG

Co-planar or non-Co-planar with the 4 points ?
Thanks in advance for your time and help.
Best Regards.
Loi.

 

ACCEPTED SOLUTION

Accepted Solutions

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.

Capture.JPG

View solution in original post

5 REPLIES 5

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.

Capture.JPG


@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 Werner_E_2-1662026082471.png ?

 

 

Werner_E
25-Diamond I
(To:Werner_E)

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.

Werner_E_0-1662033528163.png

 

"coplanar2" is to be preferred as it also deals with the numerical inaccuracies which may occur when dealing with real numbers.

Werner_E_2-1662033826023.png

 

 

ttokoro
20-Turquoise
(To:Werner_E)

image.png

Many Thanks, Terry.:

Point2Plane.PNG

Best Regards.

Loi.

Announcements

Top Tags