POV-Ray : Newsgroups : povray.binaries.images : Bug in Supercone()? : Re: Bug in Supercone()? Server Time
4 Nov 2024 20:13:35 EST (-0500)
  Re: Bug in Supercone()?  
From: Chris B
Date: 21 Mar 2008 15:45:40
Message: <47e41e74$1@news.povray.org>
"Cousin Ricky" <ric### [at] yahoocom> wrote in message 
news:web.47e40ce72d3a644685de7b680@news.povray.org...
>I get very odd results with the parameters that follow.  Am i doing 
>something
> wrong?
>
> _________________________________________________
>
> #include "shapes.inc"
>
> #declare R1 = 0.05;
> #declare R2 = 0.25;
>
> #declare Test1 = Supercone (0, R1, R1, y, R1, R2)
>

Hi Cous.,

I think you're just going a bit small. If you look at the quartic for the 
Supercone macro it's using the products of the squares of the radii in 
places which means it's working with very small numbers. I'd guess you're 
just a victim of rounding errors.

If you use:

 #declare Test1 = object {Supercone (0, 10*R1, 10*R1, 10*y, 10*R1, 10*R2) 
scale 0.1}

you should avoid the problem.

Regards,
Chris B.


Post a reply to this message

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