POV-Ray : Newsgroups : povray.unofficial.patches : Step function : Re: Step function Server Time
29 Apr 2024 03:46:05 EDT (-0400)
  Re: Step function  
From: Chris Huff
Date: 21 Aug 2000 22:30:18
Message: <chrishuff-755F17.21314021082000@news.povray.org>
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

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