POV-Ray : Newsgroups : povray.animations : CSG tree of Unions : Re: CSG tree of Unions Server Time
19 May 2024 02:20:55 EDT (-0400)
  Re: CSG tree of Unions  
From: Trevor G Quayle
Date: 4 Feb 2008 10:10:01
Message: <web.47a72a9e7294e255c150d4c10@news.povray.org>
"melo" <mel### [at] coxnet> wrote:
> Well I have a hierarchically structured CSG tree. Different parts of the tree at
> different levels represent different body parts.
>
> #declare Humanoid =
>   union { // trunk
>     cone{ ..}
>     sphere{ ...}
>     union{  // right arm
>       sphere{..} // shoulder
>       cone{..}   // upperarm
>       union{ // lower right arm
>         sphere{..} // elbow
>         cone{..} // lowerarm
>         union{
>            sphere{..} wrist
>            object{ right_hand }
>            }
>         }
>     }
>
> Now questions:
> 1. Do those changes get reflected back in the POV-RAY SDL variable Humanoid?
> 2. Is it possible to traverse my CSG Unioned tree object and figure out where
> the limbs of my virtual guy have ended up at? [I need to be able to do this so
> I can put my Humanoid into the pose he was at the end of the prev stage, at the
> beginning of the new stage.)

Appropriately structured and nested use of vaxis_rotate and/or vrotate could be
of use.

-tgq


Post a reply to this message

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