 |
 |
Equation of a circle through 3 points in 3D space |
 |
Jun13-07, 10:15 AM
|
#1
|
ady_mech is
Offline:
Posts: 6
|
Equation of a circle through 3 points in 3D space
Hello there
I am trying to figure out this but am having some difficulty. Your help would be much appreciated.
I have 3 points in 3D space: (x1,y1,z1), (x2,y2,z2) and (x3,y3,z3). My objective: I need to find out the radius of the circle that passes through these 3 points.
I know how to do this if the points were in 2D space (there are several Google links that explain it). But I don't know how to do it if the points are in 3D space. I don't need the equation of the circle, just the radius of the circle that passes through these three 3D points.
Thanks a lot for taking the time to respond.
|
|
|
|
Jun13-07, 10:39 AM
|
#2
|
matt grime is
Offline:
Posts: 9,385
Recognitions:
Homework Helper
Science Advisor
|
you can find the distances between these three points, and the angles between all the lines through pairs of points, thus you can construct a triangle - now you need the radius of the circle that circumscribes such a triangle, which is purel y a problem in the plane that you know how to do.
|
|
|
|
Jun13-07, 02:57 PM
|
#3
|
Dr. Proof is
Offline:
Posts: 29
|
Be careful. Not all triangles can be circumscribed by a circle. While there is an infinite number of triangles in 3-D space that can be circumscribed by a circle, not all possible triangles can be circumscribed by a circle. It is possible to have a set of three points that cannot be circumscribed by a circle.
|
|
|
|
Jun13-07, 03:30 PM
|
#4
|
D H is
Online:
Posts: 5,622
|
Three non-colinear points define a plane. Three non-colinear points on a plane form the vertices of a triangle. All triangles have a circumcircle; this is one of Euclid's propositions. The only constraint is that the points not be colinear.
|
|
|
|
Jun13-07, 03:35 PM
|
#5
|
haiha is
Offline:
Posts: 138
|
I still think there is only one circle that circumscribes the given triangle no mater in 2D or 3D. A triangle always defines a plane.
|
|
|
|
Jun13-07, 04:02 PM
|
#6
|
Dr. Proof is
Offline:
Posts: 29
|
Originally Posted by D H
Three non-colinear points define a plane. Three non-colinear points on a plane form the vertices of a triangle. All triangles have a circumcircle; this is one of Euclid's propositions. The only constraint is that the points not be colinear.
|
You are absolutely correct D H. All triangles do indeed have a circumcircle. I was absolutely dead wrong to say that there are some triangles that do not have a circumcircle.
I am sorry if my statement generated any confusion for you, ady_mech.
I thinks it's ironic that I tried to help on this forum, and now I am the one doing the learning
|
|
|
|
Jun13-07, 04:12 PM
|
Last edited by Werg22; Jun13-07 at 04:31 PM..
#7
|
Werg22 is
Offline:
Posts: 1,514
|
Originally Posted by Dr. Proof
Be careful. Not all triangles can be circumscribed by a circle. While there is an infinite number of triangles in 3-D space that can be circumscribed by a circle, not all possible triangles can be circumscribed by a circle. It is possible to have a set of three points that cannot be circumscribed by a circle.
|
??? I don't think you are correct... Say we chose two points (on the xy plane) and define the line that goes through both and then the median. Any point on the median is equally distanced from the two points. The equation of the median can be put in the form
Say A and B are the points in question. Point C is the other one. For a particular point on the median, the distance squared between that point and  is
And the distance squared between that point and  is
And hence in order to find the center of the circle we solve
which simplifies to
Which is a first degree equation and hence it is solvable regardless of the vertice of the triangle.
|
|
|
|
Jun13-07, 06:25 PM
|
#8
|
Dr. Proof is
Offline:
Posts: 29
|
Originally Posted by Werg22
??? I don't think you are correct... Say we chose two points (on the xy plane) and define the line that goes through both and then the median. Any point on the median is equally distanced from the two points. The equation of the median can be put in the form
|
Werg22: You should have read post #6 before you went through all the trouble. 
|
|
|
|
Sep7-07, 03:40 AM
|
#9
|
Greek000 is
Offline:
Posts: 1
|
Solution to the problem
Originally Posted by matt grime
you can find the distances between these three points, and the angles between all the lines through pairs of points, thus you can construct a triangle - now you need the radius of the circle that circumscribes such a triangle, which is purel y a problem in the plane that you know how to do.
|
Well, you only need to find the distances between these three points in 3D space, which correspond to the lengths of the triangle sides. This is an easy task. If we name these distances a, b, c then the radius R of the circumscribed circle is:
When the points are colinear the quantity inside the square root becomes zero, and therefore the radius becomes infinite as it should.
|
|
|
|
Oct3-07, 08:31 AM
|
Last edited by Wiggers; Oct3-07 at 09:31 AM..
#10
|
Wiggers is
Offline:
Posts: 1
|
Now the 3D Center Point
The above thread is helpful, but I'd like to add the question of now finding the coordinates of the circle center. The last replay by "Greek000" gives the solution for finding the Radius. Is there a simple solution for the coordinates?
thanks,
Rob
|
|
|
|
May27-08, 12:36 AM
|
#11
|
scadza is
Offline:
Posts: 2
|
Finding coordinates of the center
Suppose we have 3 points p1,p2,p3. Make two vectors P1P2 and P2P3 .Using this two we can calculate normal to the plane formed by given 3 points. Say N is the normal.
Now direction of bisector of p1 and p2 is given by cross product of b1 = P1P2 x N. Similarly for p2 and p3 is b2 = P2P3 x N.
Now find equation of two bisector line using the midpoint of p1 and p2 and b1 vector. Similarly find another bisector . Solve them to get the center of circumcircle.
|
|
|
|
May27-08, 12:44 AM
|
#12
|
ice109 is
Offline:
Posts: 1,706
|
ha i just suggested a solution to another problem that works for this one. you have 3 points
solve the system of 3qns 3unknowns for a general cylinder for a,b,R:
(x-az)^2+(y-bz)^2=R^2
|
|
|
|
May27-08, 01:08 AM
|
#13
|
scadza is
Offline:
Posts: 2
|
I would be glad if you could explain a little bit more on this problem. i.e. How can u get the coordinates of circumcenter using your method
|
|
|
|
May27-08, 01:10 AM
|
#14
|
ice109 is
Offline:
Posts: 1,706
|
Originally Posted by scadza
I would be glad if you could explain a little bit more on this problem. i.e. How can u get the coordinates of circumcenter using your method
|
he didn't ask for the circum center, he asked for the radius
|
|
|
|
May28-08, 04:59 AM
|
#15
|
maze is
Offline:
Posts: 654
|
Let the vectors from the origin to the 3 points you know be  , and call the vector from the origin to the center point  . Our goal is to find  .
The vector from point 1 to the center,  , must be the same length as the vector from point 2 to the center,  , which must be the same length as the vector from point 3 to the center,  . In other words, we have the following 3 equations:
Focus on the first one. We can multiply this out and simplify (note the cancellation of  ):
The same thing could be done for the other 2 starting equations, in which case we get the following 3 results:
If we recast these 3 equations in matrix form, we get,
Then multiplying both sides by the matrix inverse, we get the center,  .
You can find the radius by taking the length of the vector from the center to one of the points on the circle,
|
|
|
|
Jul17-08, 03:58 PM
|
#16
|
richardmcc2 is
Offline:
Posts: 1
|
Re: Equation of a circle through 3 points in 3D space
Originally Posted by maze
Let the vectors from the origin to the 3 points you know be , and call the vector from the origin to the center point . Our goal is to find .
The vector from point 1 to the center, , must be the same length as the vector from point 2 to the center, , which must be the same length as the vector from point 3 to the center, . In other words, we have the following 3 equations:



Focus on the first one. We can multiply this out and simplify (note the cancellation of ):



The same thing could be done for the other 2 starting equations, in which case we get the following 3 results:



If we recast these 3 equations in matrix form, we get,

Then multiplying both sides by the matrix inverse, we get the center, .

You can find the radius by taking the length of the vector from the center to one of the points on the circle,

|
I've been working on this problem for the last couple of days and I tried this method, but it didn't work. The 3 equations are not all independent, only two of them are, so when I tried to take the inverse of the 3x3 matrix, I couldn't because the determinant was zero.
I solved the problem today with a different method. The center of the circle defined by 3 points can also be described as the orthocenter of the triangle formed by the three points. Mathworld had a relatively simple equation ( http://mathworld.wolfram.com/Barycen...ordinates.html) for the orthocenter in terms of barycentric coordinates, so I was able to find them, and then convert to rectangular coordinates.
|
|
|
|
 |
|
 |
|
 |
 |
|
 |
|