POV-Ray : Newsgroups : povray.newusers : understanding bounding boxes : understanding bounding boxes Server Time
5 Sep 2024 04:20:11 EDT (-0400)
  understanding bounding boxes  
From: JRG
Date: 18 Nov 2001 09:11:11
Message: <3bf7c17f$1@news.povray.org>
When you rotate an object, is its bounding box rotated accordingly?
I mean: suppose you have a box {-1,1}. Its bounding box is surely box
{<-1,-1,-1>, <1,1,1>}. Now suppose you rotate the box this way: box {-1,1
rotate 45}. What's its bounding box now? box {<-1,-1,-1>,<1,1,1> rotate
<45,45,45>} or box {<-1.500,-1.500,-1.707>,<1.500,1.500,1.707>}?

If it's box {-1,1 rotate 45} then min_extent and max_extent don't return the
minimum and maximum coordinates of an object's bounding box, but simply the
minimum and maximum coordinates of the smallest box (alligned with the axes)
containing that object (of course this behaviour is highly desiderable).

If it's box {<-1.500,-1.500,-1.707>,<1.500,1.500,1.707>} (as min_extent and
max_extent return) then the *degree of optimization* of a CSG (i.e. its
render time) depends on its orientation.

What I'm not getting here? Does what I've said make any sense?

Thanks in advance,

--
Jonathan.


Post a reply to this message

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