POV-Ray : Newsgroups : povray.general : Understanding isosurface, difference between negative and positive : Re: Understanding isosurface, difference between negative and positive Server Time
28 Jul 2024 22:28:21 EDT (-0400)
  Re: Understanding isosurface, difference between negative and positive  
From: Louis
Date: 6 Jan 2014 13:40:01
Message: <web.52caf857b61b6914cbe7ea7c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 05.01.2014 02:23, schrieb Louis:
> > Doctor John <j.g### [at] gmailcom> wrote:
> >> On 28/12/13 16:39, Louis wrote:
> > Am I misunderstanding vrotate?
>
> No, but you're misunderstanding distance computations in 3D space ;-)
>
> You probably thought that with distance computations in 2D space using
> squares and square roots, 3D space would call for cubes and cubic roots,
> but this is not the case at all; the proper formula should indeed be:
>
>    #declare length = sqrt(pow(test.x,2)+pow(test.y,2)+pow(test.z,2));
>
> or, even simpler yet (and less prone to errors ;-)):
>
>    #declare length = vlength(test);

Thanks,

Finally found the error, using coordinates as positions somewhere.

I should have been able to reason squares instead of cubes, guess Pythagoras
used some more time to think about it than I did :-)

Cheers,
Louis


Post a reply to this message

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