POV-Ray : Newsgroups : povray.unofficial.patches : Parametric crashes MegaPOV : Re: Parametric crashes MegaPOV Server Time
2 Sep 2024 04:18:04 EDT (-0400)
  Re: Parametric crashes MegaPOV  
From: david sharp
Date: 23 May 2000 00:14:02
Message: <392a058a@news.povray.org>
David Fontaine <dav### [at] faricynet> wrote
[ ... ]
> #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>
> }

Adding a "precompute" might let the surface to render.
(Still, of course, POV should not be crashing without it.)

For example:
 #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>
   precompute 10, [x,y,z]
 }


Post a reply to this message

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