POV-Ray : Newsgroups : povray.general : CSG with a bounded_by shape -- any inaccuracies? : CSG with a bounded_by shape -- any inaccuracies? Server Time
31 Jul 2024 20:26:04 EDT (-0400)
  CSG with a bounded_by shape -- any inaccuracies?  
From: Kenneth
Date: 26 Sep 2006 23:15:01
Message: <web.4519ebe8bd7a8175c710aa580@news.povray.org>
Here's a little question I've been thinking about for awhile, having to do
with CSG and an added bounded_by shape.

Say I construct a CSG shape out of POV-Ray primitives--using merge,
difference or intersection-- that has a final visible shape (dimensions or
volume) of exactly
<-2, 0, -3> to <2,12,5>
and I want to add a bounding box to it.

Is is safe to use the exact same dimensions for the bounding box?  Or should
I use something like
<-2.0001,-.0001,-3.0001> to <2.0001, 12.0001,5.0001>
to take care of any possible floating-point inaccuracies? The POV docs seem
to indicate that it's not a problem, but I usually do it the latter way
because I just don't know. Do floating-point problems even occur with a
bounding shape?

Ken W.


Post a reply to this message

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