POV-Ray : Newsgroups : povray.general : isosurface from density file Server Time
5 Nov 2024 20:18:00 EST (-0500)
  isosurface from density file (Message 1 to 2 of 2)  
From: janger
Subject: isosurface from density file
Date: 13 Jan 2003 16:01:03
Message: <3e23290f@news.povray.org>
Can anyone show me how to use a df3 file to render an isosurface? I
understand the file format, but just don't know how to create an isosurface
from it.


Post a reply to this message

From: ingo
Subject: Re: isosurface from density file
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.