POV-Ray : Newsgroups : povray.general : Hierarchy in POV-Ray ? : Re: Hierarchy in POV-Ray ? Server Time
5 Nov 2024 03:16:16 EST (-0500)
  Re: Hierarchy in POV-Ray ?  
From: Francois Labreque
Date: 1 Jul 2003 23:02:03
Message: <3f024b2b$1@news.povray.org>
Program ended abnormally on 2003-07-01 22:05, Due to a catastrophic
Oodini error:

>>>> Does POV-Ray support hierarchy of objects ?
>>>>
>>>> I don't find anything about that in the doc.
>>>
>>>
>>> If you suggest me Union, where is the new centroid ?
>>
>>
>>
>> Whatever technique you use to determine the centroid of the parts will
>> presumably still work for the centroid of the union.
> 
> 
> Well, suppose I want to do a solar system. All the planets are supposed 
> to turn around the sun (don't care about spin), and follow it when the 
> sun turns around the center of the galaxy.
> I mean thiskind of hierarchy.
> 
> But there isn't any hierarchy in the union, I guess.
> All the objects are equal.

I think the answer you're looking for, is yes.  Relative position of objects in 
a union are kept when the transformation is applied to the whole union.

-- 
/*Francois Labreque*/#local a=x+y;#local b=x+a;#local c=a+b;#macro P(F//
/*    flabreque    */L)polygon{5,F,F+z,L+z,L,F pigment{rgb 9}}#end union
/*        @        */{P(0,a)P(a,b)P(b,c)P(2*a,2*b)P(2*b,b+c)P(b+c,<2,3>)
/*   videotron.ca  */}camera{orthographic location<6,1.25,-6>look_at a }


Post a reply to this message

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