|
|
Le 21/03/2015 15:14, bublible a écrit :
> How can I count all objects that are in union object and apply some changes to
> them? I am coming from FLASH/PHP/JS world and for this I would use "for...in" -
> how could be this implemented in Povray please?
Once a union's definition is done, it's done.
With the official povray, there is no access to components of CSG.
You need to apply the change while still defining the union.
In some unofficial development, you might a copy of a part of an union
(it would still be a copy, the original would remain as it was when
defined):
>
http://wiki.povray.org/content/User:Le_Forgeron#Getting_a_copy_of_an_object_inside_a_CSG
The number of first-rank components, yet to be documented, is given by
children{...}
Whatever, when defining an object (even a csg), you only have one chance
to make a good first impression.
Post a reply to this message
|
|
|
|
Am 21.03.2015 um 17:58 schrieb Le_Forgeron:
> In some unofficial development, you might a copy of a part of an union
> (it would still be a copy, the original would remain as it was when
> defined):
>
>>
http://wiki.povray.org/content/User:Le_Forgeron#Getting_a_copy_of_an_object_inside_a_CSG
I think that branch doesn't get half as much attention as it deserves.
Post a reply to this message
|
|