POV-Ray : Newsgroups : povray.unofficial.patches : Density_file extention patch: a patch for 3D data : Re: Density_file extention patch: a patch for 3D data Server Time
8 Jul 2024 13:38:49 EDT (-0400)
  Re: Density_file extention patch: a patch for 3D data  
From: Christoph Hormann
Date: 30 Aug 2002 02:37:13
Message: <3D6F1298.90C2C927@gmx.de>
"R. Suzuki" wrote:
> 
> I have added this feature in the new patch uploaded today.
> It also has a 'save file' option.
> The below is an example code.
> 
> [...]

Great, but for the saving option i would rather use a different syntax
than the trick with the interpolation value.

Maybe:

#declare DATA3D2= function { pattern{
    density_file
      function 40,40,40 {f_noise3d(x*8,y*8,z*8)/4
                +f_sphere(x-0.5,y-0.5,z-0.5,0)}

      save_file {
        df3 "povdata.df"
        [type 0|1|2]
        [format 0|1]
      }

      interpolate 2
  }
}


Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 13 Aug. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

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