POV-Ray : Newsgroups : povray.unofficial.patches : Parametric crashes MegaPOV : Re: Parametric crashes MegaPOV Server Time
2 Sep 2024 04:17:02 EDT (-0400)
  Re: Parametric crashes MegaPOV  
From: david sharp
Date: 22 May 2000 20:33:18
Message: <3929d1ce@news.povray.org>
David Fontaine <dav### [at] faricynet> wrote

> 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>
> }
>

I get a "illegal operation" and program abort with WinMegaPOV
but not with DOS MegaPOV. Usually such things are vice versa,
(DJGPP compile seems more sensitive to memory mishandling) and
that makes me more curious.


Post a reply to this message

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