|
|
Dieter Gaffrey <dga### [at] ufobi6uni-forstgwdgde> wrote:
: for me as a beginner, please, a little bit more comprehensive.
AFAIK there's no way to specify an include file from the command line,
but you can achieve similar results this way:
In your pov file (let's suppose that it's named "demo.pov"), add the
following line at the beginning:
#include "name.inc"
Now, suppose you want a file named "demo.inc" to be included in the place
of the above line. From UNIX command prompt you can type these commands:
echo '#include "demo.inc"' > name.inc
povray +Idemo.pov
That's it. Now "demo.pov" will include the file "name.inc" which contains
only one line: #include "demo.inc"
The result: "demo.inc" gets included.
Note that some shells require you to remove the file "name.inc" before
you can redirect anything to it (ie. with the > operator).
--
main(i){char*_="BdsyFBThhHFBThhHFRz]NFTITQF|DJIFHQhhF";while(i=
*_++)for(;i>1;printf("%s",i-70?i&1?"[]":" ":(i=0,"\n")),i/=2);} /*- Warp -*/
Post a reply to this message
|
|