|
|
In article <39A1E2F9.CB1B7B4B@insectes.net>, Libellule
<lib### [at] insectesnet> wrote:
> I was wondering if it was possible to add a Heaviside step function for
> use in isosurfaces:
>
> say two arguments, the first is the "switch" point, where the function
> goes from 0 to 1 (or vice versa), and the second is the argument, which
> would be a good place to put x, y, z or whatever for the expression.
>
> I was thinking about this for say, limiting a sinusoid to a particular
> range, by multiplying it by a step function (two actually, one to
> truncate each end of it). It could have other uses, I guess.....
I'm not quite sure what you mean...but wouldn't min() and max() do what
you want? Do you want a function that is 0 below a certain input value,
and 1 above it?
--
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/
<><
Post a reply to this message
|
|