|
![](/i/fill.gif) |
Rafal 'Raf256' Maj wrote:
> "Rafal 'Raf256' Maj" <raf### [at] raf256 com> wrote in
> news:Xns### [at] 204 213 191 226
>
> 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
|
![](/i/fill.gif) |