|
|
/*
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
|
|