View Full Version : Sphere Center of four point

02 February 2009, 07:28 PM
I have 4 particles randomly.

I wantto get a point that distance are all same with these each of four point .

by another way to describe :
I have 4 points.And I need a sphere center coordinates that these 4 points are on these sphere surface.(thus each these 4 point to center point distance are all same)

is there a fast way to do this ?
or I have to code hundreds of codes

02 February 2009, 09:17 AM
If you have four points generated randomly there's a chance (even bigger chance in 2d) that it's impossible to draw a 'circle'/'sphere' through all these points.. Like when the points are in 'one' line. Or when three points are in one line..

This is important to remember and understand.

02 February 2009, 09:24 AM
if three point of them, position in one line, you can not get result in theory ,
I would rather do it like this
create a sphere,
create four point on sphere surface,then rand them position on surface

02 February 2009, 01:38 PM
and my problem starts here.
because there is no sphere.
there is 4 points (randomly) waits me to built a sphere by using all of them.
(a point as a sphere center that each distance of these 4 points must be same)

02 February 2009, 05:13 PM
got my solution via this page....sorry unable to share. But all you have to do is form the cofactor matrices and solve for their determinant.......

02 February 2009, 10:51 PM
useful link .thanks

CGTalk Moderation
02 February 2009, 10:51 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.