POV-Ray : Newsgroups : povray.general : About the unit : Re: About the unit Server Time
5 Aug 2024 04:13:02 EDT (-0400)
  Re: About the unit  
From: Christopher James Huff
Date: 26 Nov 2002 23:14:25
Message: <chrishuff-2D19F6.23113826112002@netplex.aussie.org>
In article <3de4404d$1@news.povray.org>,
 "Wu Yang" <wya### [at] cswrightedu> wrote:

> Yes, you are right. Do you know how to measure the length , width , height
> of a object? Thanks

Length, width, and height are human measurements that would depend on 
the object. If you can specify the object, you should know its 
dimensions.

You could get an approximation of its extents along the x, y, and z axii 
by taking the corners of its bounding box, you can access this 
information with the min_extent() and max_extent() functions. Automatic 
bounding isn't always perfect though, the bounding box may fit a bit 
"loosely", especially on things like CSG difference or intersection and 
blob objects. And this information might not be useful...for example, 
the length of a cone is the distance between its end points, the length 
of a plane is the distance from its nose to its tail, but the extents 
are always of an axis-aligned bounding box containing the object.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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