[Bf-committers] Boolean tool precision

Kent Mein mein at cs.umn.edu
Tue Jul 3 17:34:02 CEST 2007


In reply to Ken Hughes (khughes at pacific.edu):

> 
> I've experimented with making the "equal to zero" tests scale based on 
> the size of the values being compared, using the floating point numbers 
> exponent and mantissa (see frexp() in math.h).  This gives much better 
> results, but at the cost of speed: as much as 20% slower in some of my 
> tests.
> 
> I'm open to other suggestions how to handle this, or just live with one 
> of these two options:  fast but possibly non-manifold, slower but almost 
> always manifold.
> 
> Ken

I vote for slower but more accurate.  Whenever I've used it I haven't
been worried about the speed it could be 4 times slower and I wouldn't
complain. ;)

Kent
-- 
mein at cs.umn.edu
http://www.cs.umn.edu/~mein


More information about the Bf-committers mailing list