POV-Ray : Newsgroups : povray.general : Write macro-generated objects to file? : Re: Write macro-generated objects to file? Server Time
5 Nov 2024 03:15:44 EST (-0500)
  Re: Write macro-generated objects to file?  
From: Torsten Crass
Date: 22 Jul 2003 12:31:19
Message: <3f1d66d7$1@news.povray.org>
Hi Christoph!

> You can find some samples for using the #write directive in the standard
> include file 'shapes.inc'.  As you said #write supports strings, floats
> and vectors.  Since all objects consist of such elements you can write
> them quite easily.

Uhm, well... yes and no. Of course it is possible to assemble all 
keywords and parameter values which define an object into a file - if 
you can retrieve them one by one. But what about a union that comes out 
of a macro, and whose sub-objects have been created and randomly 
transformed by further sub-macros, and so forth?

Something like a to_string(OBJECT) function would be really handy! But 
there isn't one, is there?

Regards -

	Torsten


Post a reply to this message

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