POV-Ray : Newsgroups : povray.general : function for scallop wave : Re: function for scallop wave Server Time
2 Aug 2024 00:16:33 EDT (-0400)
  Re: function for scallop wave  
From: Tom Melly
Date: 25 Feb 2005 05:42:02
Message: <421f00fa$1@news.povray.org>
"regdo" <reg### [at] wanadoofr> wrote in message news:421efe6c@news.povray.org...
> Tom Melly wrote:
> > Anyone know what function would give a scallop-like wave? (but with the
> > waves emanating from the centre of a disk, rather than one edge).
> >
> > Something like: { y-(sin(x/z))} but without the problem where z=0
> >
> >
> >
> Why not try
> y-sin(x/(min(z,0.01)) ?

or even max(z,0.01) ;)

... not a bad idea, but not really working (a max gradient of 3935 is a bit
OTT). Still, worth a try, but with a scaling-down of the returned value as
either x or z approach 0...

hmm, tried various hopeful monsters, but I'm getting very extreme shapes
with very high max gradients...


Post a reply to this message

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