POV-Ray : Newsgroups : povray.programming : property : Re: property Server Time
28 Jul 2024 08:31:09 EDT (-0400)
  Re: property  
From: Le Forgeron
Date: 23 Aug 2002 09:45:08
Message: <3D663C80.7020107@free.fr>
Rafal 'Raf256' Maj wrote:

> "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in
> news:Xns### [at] 204213191226 
> 
> I don't now yet what to do with complex situations like 
> 
> union {
>   sphere { x 1 id_number 1 }
>   sphere { x 1 id_number 2 }
>   id_number 3
> }
> 
> but I think that best will be to set id_number of both spheres to id_number 
> of scene-level object.


See my answer to your "own output format".
The id should be in the object fields, just adding a parse option to all 
objects (at the top level). That's the easy addition.

For CSG, intersection always returns the basic component,
so you will get either 1 or 2, but never 3 for your example.

At best, if you forbid a id value as meaning not set,
you could have the parser to paint the CSG id over component which have 
no value per themself.

Think of it just like a kind of pigment...


Post a reply to this message

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