In order to make a Menger-sponge isosurface i want a function that will
give me a triangular wave.
I tried using floor, but I get a plane at x=0 where it should be empty
space. Is this a bug? What would be a better way to get a triangle wave?
isosurface {
function {
abs(x/6+3-floor(x/6+3)-.5)-2/6
}
contained_by { box { -3,3 } }
pigment { color rgb x }
}
--
David Fontaine <dav### [at] faricy net> ICQ 55354965
My raytracing gallery: http://davidf.faricy.net/
Post a reply to this message
Attachments:
Download 'mengeriso.gif' (5 KB)
Preview of image 'mengeriso.gif'
![mengeriso.gif](/povray.binaries.images/attachment/%3C39EE63B6.7B6F87BD%40faricy.net%3E/mengeriso.gif?preview=1)
|