POV-Ray : Newsgroups : povray.binaries.images : Isosurface help please : Re: Isosurface help please Server Time
19 Aug 2024 20:13:48 EDT (-0400)
  Re: Isosurface help please  
From: David Fontaine
Date: 21 Oct 2000 02:29:59
Message: <39F1352E.8787BB2A@faricy.net>
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] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

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