|
![](/i/fill.gif) |
Mike Williams wrote:
> So, you meant to type
>
> isosurface {
> function {
> y - (abs(x/6+3-floor(x/6+3)-.5)-2/6)
> }
> contained_by { box { -3,3 } }
> pigment { color rgb x }
> }
No, I meant no y. I want the equation to return a value consistent with a
sawtooth wave as x changes. The way I want to use this function is to create
alternating solid and empty spaces.
> But this doesn't have a plane at x=0.
It does when the y is removed.
> Although you added +3, you also subtracted floor(3), so these cancel
> out, so it doesn't get translated.
Hmm, you're right, would be +(0..1) regardless of wavelength... but I checked and
the waveform was still what I was looking for.
--
David Fontaine <dav### [at] faricy net> ICQ 55354965
My raytracing gallery: http://davidf.faricy.net/
Post a reply to this message
|
![](/i/fill.gif) |