POV-Ray : Newsgroups : povray.pov4.discussion.general : Mesh2 option for isosurface : Re: Mesh2 option for isosurface Server Time
9 May 2024 05:21:09 EDT (-0400)
  Re: Mesh2 option for isosurface  
From: Nicolas Alvarez
Date: 23 Nov 2007 20:58:14
Message: <47478536$1@news.povray.org>

> Nicolas Alvarez <nic### [at] gmailisthebestcom> wrote:
>> That's only useful if you can save the mesh and use it for other
>> renders.
> 
> #if (generate_mesh = 0)
>  #include "my_mesh.inc"
> #else
>  mesh_generation_macro()
> #end
> 
> (This is quite similar to the way Radiosity pregeneration works, you'll notice).

I *always* use this on the global photons block:

#if(file_exists("photons.ph"))
load_file "photons.ph"
#else
save_file "photons.ph"
#end

If I need to re-make the photon map, I invert the condition just for 
that render, or delete the file.


Post a reply to this message

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