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.

Thanks lots, Jeppe!

My original coords that I felt happy with, (here substituted into your code)

;triangle coords
;-3.1x,-19.2y,14.9z 
;21.2x,-8.9y,15.6z 
;-1.1x,-12.4y,39.4z 

;circumcenter coords

x#=5.0 
y#=-5.1 
z#=23.6 
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



give a reasonable 18.45 - ish!

But thanks, your coords are much more accurate, and it is strange that the coordinates are so different, yet they work the same in both my code and yours, so must be right :)

Thanks once again!