POV-Ray : Newsgroups : povray.general : Hierarchy in POV-Ray ? : Re: Hierarchy in POV-Ray ? Server Time
4 Aug 2024 06:15:59 EDT (-0400)
  Re: Hierarchy in POV-Ray ?  
From: Warp
Date: 2 Jul 2003 10:02:36
Message: <3f02e5fc@news.povray.org>
Oodini <svd### [at] freefr> wrote:
> But there isn't any hierarchy in the union, I guess.
> All the objects are equal.

  Wrong.

union
{ object { Object1 }
  union // sub
  { object { SubObject1 }
    object { SubObject2 }
    union // subsub
    { object { SubSubObject 1 }
      object { SubSubObject 2 translate y /*this affects only this object*/}
      translate -y // this affects all objects in this 'subsub' union
    }
    translate x // this affects all objects in this 'sub' union
  }
  translate z // this affects all the objects
}

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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