POV-Ray : Newsgroups : povray.general : Intersection of three spheres? : SV: Intersection of three spheres? Server Time
8 Aug 2024 20:27:35 EDT (-0400)
  SV: Intersection of three spheres?  
From: Tor Olav Kristensen
Date: 20 Oct 2000 22:26:52
Message: <39f0feec@news.povray.org>
Greg M.Johnson wrote:
> ...
> #declare
>
z4=((d21*a31-d31*a21)/(a21*b31-b21*a21)+(d32*a21=d21*a32)/(a21*b32-a32*b21))
>
>                 /
>
> ((c21*a32-c32*a21)/(a21*b32-a32*b21)+(a21*c32-c21*a31)/(a21*b31-b21*a31));
> ...

I think I've spotted some errors here.

Try to do the following changes to the above formula:

(d32*a21 = d21*a32)  = = = > (a21*d32 - d21*a32)

(a21*b31-b21*a21)  = = = > (a21*b31-b21*a31)

(a21*c32-c21*a31)  = = = > (a21*c31-c21*a31)


The first expression was written as a logical one: (something = otherthing)
In the other two the indexes were in error.

I'm on a journey to north Norway now, so I don't have
any more time to check the rest of your code.


Regards,

Tor Olav Kristensen


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.