POV-Ray : Newsgroups : povray.general : crash with isosurface : Re: crash with isosurface Server Time
1 Aug 2024 16:26:54 EDT (-0400)
  Re: crash with isosurface  
From: Friedrich Lohmueller
Date: 1 Aug 2005 12:49:13
Message: <42EE52A5.2060100@t-online.de>
Hi Christoph,

> But note:
> 
>>   sqrt(  0.5*x*x + y*y + z*z - 1)
> 
> 
> tries to calculate the square root of a negative number for some values 
> of x,y and z, the result of this is not defined (and can vary from 
> platform to platform - i even get different results with different 
> builds here).
> 
> You almost certainly want:
> 
> sqrt( 0.5*x*x + y*y + z*z ) - 1

Thanks a lot, that solves the problem!


Friedrich


Post a reply to this message

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