POV-Ray : Newsgroups : povray.general : bounding box generation : Re: bounding box generation Server Time
8 Aug 2024 12:25:29 EDT (-0400)
  Re: bounding box generation  
From: Warp
Date: 6 Jan 2001 10:48:45
Message: <3a573e5c@news.povray.org>
Ron Parker <ron### [at] povrayorg> wrote:
: MegaPOV's min_extent and max_extent might work, but you'll get some slop if
: there are intersections or differences involved in the CSG.

  To be more precise, min_extent and max_extent return the coordinates of
the bounding box of the object, not the extents of the object.
  POV-Ray calculates automatically bounding boxes for most objects (with a
few exceptions). Mostly the bounding box corresponds to the extends of the
object itself, but sometimes it doesn't (mainly because it would be too
difficult to automatically calculate the exact extents of an object).
  So there's no way you can automatically get the optimal extents of an object.
The only solution is just to fine-tune by hand (eg. using a semi-transparent
box in the place of your bounding box to see what does it cover).

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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