|
|
When working on the CSG-globe problem, I found myself deleting vast
amounts of automatically created data to make room for new stuff.
Some times I deleted files too quickly because Povray hadn't gotten that
far yet. And sometimes I deleted too little.
So here's a trick so that povray can do it for you
#declare Filename = concat("/data/povray/Mutilated
Earth/data/flatplane/flatnodes.", str(frame_number,-5,0));
#debug "Loading the mesh object. . .\n"
#include Filename
#debug "Done.\n"
/*
The next trick does not delete the file but reduces its size to 0
when #declare SetForDeletion=true; is found in the file.
*/
#ifdef (SetForDeletion)
#if (SetForDeletion=true)
#fopen DataFile Filename write
#fclose DataFile
#end
#end
--
Cheers
Ger
Post a reply to this message
|
|