|
![](/i/fill.gif) |
In article <3de4404d$1@news.povray.org>,
"Wu Yang" <wya### [at] cs wright edu> 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] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |