POV-Ray : Newsgroups : povray.binaries.images : Isosurface help please : Isosurface help please Server Time
19 Aug 2024 20:10:52 EDT (-0400)
  Isosurface help please  
From: David Fontaine
Date: 18 Oct 2000 23:11:32
Message: <39EE63B6.7B6F87BD@faricy.net>
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] faricynet>  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


 

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