POV-Ray : Newsgroups : povray.bugreports : Crashed 3.7 beta 29 using isosurface and sqrt : Crashed 3.7 beta 29 using isosurface and sqrt Server Time
14 May 2024 01:38:13 EDT (-0400)
  Crashed 3.7 beta 29 using isosurface and sqrt  
From: FainAvis
Date: 31 Dec 2008 00:40:00
Message: <web.495b052d8e7a19918c15b9870@news.povray.org>
/*
The code below crashed Povray 3.7 beta 29 and wrote a dump file. I was tryig to
follow Mike William's excellent isosurface tutorial.
I clipped the formula F() directly from his page and ran it.
I suspected use of vectors in sqrt() triggered the crash so I attempted to use
function F() to declare Fr.
That gives an error vectors found, expected float.


*/
#declare R = 3;
#declare  F = function(x,y,z) { F(x, sqrt((y*y+z*z)), z) }  // bug here

//#declare Fr = F(x,y,z);    // This line inserted after crash of following code
                           // brings error requires float not vector.
                           // When I used function F() in isosurface
                           // povray crashed.

//////
isosurface {
 function {F(x,y,z)}

        max_gradient 3.4  // increased fom 2.4 because of rectangular
                          //cutout in object
        accuracy 0.001
        contained_by{sphere{0,R}}
        pigment {rgb .9}
        finish {phong 0.5 phong_size 10}
}


Post a reply to this message

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