POV-Ray : Newsgroups : povray.advanced-users : Write to file example needed : Re: Write to file example needed Server Time
2 Nov 2024 13:19:16 EDT (-0400)
  Re: Write to file example needed  
From: Ken
Date: 17 Aug 1999 03:44:09
Message: <37B912B8.212EA839@pacbell.net>
Nieminen Mika wrote:
> 
> Ken <tyl### [at] pacbellnet> wrote:
> :   As the subject says could someone be so kind as to provide me with an
> : example of how to set up the macro below to write the macros output to a
> : file. Preferably with an optional switch to either render the file OR
> : write the file. Yeah I checked the docs but my attempts have yet so far
> : yielded poor results.
> 
>   Do you mean something like this? If the last parameter is "" then it
> just creates the object, else it writes it to the file specified by that
> parameter.
> 
> #macro Diamond (NumSides, TopRadius, TopHeight, CentreRadius, BottomDepth, Filename)

That looks like it should do it. I'll test it out and if I run into any problems
I let you know. Can I assume that in the file name parameter an extention can
be provided i.e. mesh.inc ?

 Thanks for the example Warp.

-- 
Ken Tyler

See my 700+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

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