Revision: 42089
http://brlcad.svn.sourceforge.net/brlcad/?rev=42089&view=rev
Author: brlcad
Date: 2011-01-11 21:38:37 +0000 (Tue, 11 Jan 2011)
Log Message:
-----------
eliminate exact floating point comaprison
Modified Paths:
--------------
brlcad/trunk/src/adrt/libtie/tie.c
Modified: brlcad/trunk/src/adrt/libtie/tie.c
===================================================================
--- brlcad/trunk/src/adrt/libtie/tie.c 2011-01-11 21:37:35 UTC (rev 42088)
+++ brlcad/trunk/src/adrt/libtie/tie.c 2011-01-11 21:38:37 UTC (rev 42089)
@@ -220,7 +220,7 @@
* this allows those divides to become fast multiplies.
*/
for (i = 0; i < 3; i++) {
- if (ray->dir.v[i] == 0.0)
+ if (NEAR_ZERO(ray->dir.v[i], SMALL_FASTF))
ray->dir.v[i] = TIE_PREC;
dirinv[i] = 1.0 / ray->dir.v[i];
ab[i] = dirinv[i] < 0.0 ? 1.0 : 0.0;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand
malware threats, the impact they can have on your business, and how you
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits