POV-Ray : Newsgroups : povray.general : Designing Sizes : Re: Designing Sizes Server Time
6 Aug 2024 16:55:29 EDT (-0400)
  Re: Designing Sizes  
From: Christopher James Huff
Date: 26 Feb 2002 18:50:30
Message: <chrishuff-D01716.18502426022002@netplex.aussie.org>
In article <3c7bec2d@news.povray.org>,
 "Lieut_Data" <lIe### [at] yahOOcom> wrote:

> #declare my_box = box {...}
> 
> translate {<my_box.x, my_box.y, my_box.z>}
> 
> I dont think this is possible, as not all objects have a center (am I
> right?) and Povray only moves the whole item so many places when
> translating, and does not reposition the center... but it would be nice...

Right. Not all objects have a single point that can be defined as the 
"center", the definition is different for every object, and is often 
useless for most purposes. A common technique is to create shapes around 
the origin (point < 0, 0, 0>) and move them to where you want them, this 
makes it easier to track where the object as a whole is. Really, you 
care more about the surfaces and size of the object than a point 
somewhere in it's middle.

-- 
Christopher James Huff <chr### [at] maccom>
POV-Ray TAG e-mail: chr### [at] tagpovrayorg
TAG web site: http://tag.povray.org/


Post a reply to this message

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