POV-Ray : Newsgroups : povray.unofficial.patches : Parametric crashes MegaPOV : Parametric crashes MegaPOV Server Time
2 Sep 2024 04:13:25 EDT (-0400)
  Parametric crashes MegaPOV  
From: David Fontaine
Date: 22 May 2000 17:05:44
Message: <3929A048.CF7BA046@faricy.net>
This code crashes MegaPOV 0.4 and 0.5. (Oh, and it's not the tan(pi/2),
because changing the v-bound to pi-.001 or similar does not fix it.)

#include "colors.inc"
#version unofficial MegaPOV 0.5;

#declare KuenSurface = parametric {
   function (2*sqrt(1+u^2)*cos(u-atan2(u,1))*sin(v))/(1+u^2*sin(v)^2),
            (2*sqrt(1+u^2)*sin(u-atan2(u,1))*sin(v))/(1+u^2*sin(v)^2),
            ln(tan(.5*v))+(2*cos(v))/(1+u^2+sin(v)^2)
   <0,0>,<2*pi,pi>
   <-5,-5,-5>,<5,5,5>
}

camera { location <0,2,-8> look_at 0 }
light_source { <200,100,-300> color White*1.4 }
object { KuenSurface
   pigment { color Plum }
   finish { specular 10 roughness .003 }
}

Tanx

--
David Fontaine     <dav### [at] faricynet>     ICQ 55354965
Please visit my website: http://www.faricy.net/~davidf/


Post a reply to this message

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