Tricky Geometry...

Blitz3D Forums/Blitz3D Programming/Tricky Geometry...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

With your coords from your first post, I have found the equidistant point for the three vertices, using my program above. They are as follows:

x: 7.92265
y: -12.0732
z: 25.2974

Run this piece of code to see that the three distances are equal:
;triangle coords
;-3.1x,-19.2y,14.9z 
;21.2x,-8.9y,15.6z 
;-1.1x,-12.4y,39.4z 

;circumcenter coords
x#=7.92265
y#=-12.0732
z#=25.2974

dx#=(-3.1-x)
dy#=(-19.2-y)
dz#=(14.9-z)

dist1#=Sqr(dx*dx+dy*dy+dz*dz)

dx#=(21.2-x)
dy#=(-8.9-y)
dz#=(15.6-z)

dist2#=Sqr(dx*dx+dy*dy+dz*dz)

dx#=(-1.1-x)
dy#=(-12.4-y)
dz#=(39.4-z)

dist3#=Sqr(dx*dx+dy*dy+dz*dz)

Print dist1
Print dist2
Print dist3

;all distances are equal

MouseWait