POV-Ray : Newsgroups : povray.general : isosurface from density file : Re: isosurface from density file Server Time
5 Aug 2024 00:21:47 EDT (-0400)
  Re: isosurface from density file  
From: ingo
Date: 13 Jan 2003 16:14:27
Message: <Xns9302E286C599seed7@povray.org>
in news:3e23290f@news.povray.org janger wrote:

> Can anyone show me how to use a df3 file to render an isosurface? 

Try something like below. Scale, threshold, accuracy and max_gradient 
depend on the df3_file you are using.
 

#declare F1=   function {
      pigment {
         density_file df3 "frog.df3"
         interpolate 1
         translate -0.5
      }
   }


isosurface{
   function {
      -F1(x,y,z).gray
   }
   contained_by {box{-0.5,0.5}}
   threshold -0.515
   accuracy 0.001
   max_gradient 145
   scale<500/500,470/500,138/500>
   scale 4
   pigment {rgb 1}
}


Ingo


Post a reply to this message

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