Revision: 51749
          http://brlcad.svn.sourceforge.net/brlcad/?rev=51749&view=rev
Author:   phoenixyjll
Date:     2012-08-02 08:57:44 +0000 (Thu, 02 Aug 2012)
Log Message:
-----------
Avoid using operator == on floating points.

Modified Paths:
--------------
    brlcad/trunk/src/librt/opennurbs_ext.cpp

Modified: brlcad/trunk/src/librt/opennurbs_ext.cpp
===================================================================
--- brlcad/trunk/src/librt/opennurbs_ext.cpp    2012-08-01 23:21:12 UTC (rev 
51748)
+++ brlcad/trunk/src/librt/opennurbs_ext.cpp    2012-08-02 08:57:44 UTC (rev 
51749)
@@ -3229,8 +3229,8 @@
     // Here we use polyline approximation.
     // TODO: Find a better fitting algorithm unless this is good enough.
 
-    if (max_dis == 0.0) {
-       // max_dis = 0.0 means that we need to automatically generate a 
threshold.
+    if (!(max_dis > 0.0)) {
+       // max_dis <= 0.0 means that we need to automatically generate a 
threshold.
        if (ZERO(surfA->BoundingBox().Volume())) {
            max_dis = pow(surfB->BoundingBox().Volume(), 1.0/3.0) * 0.2;
        } else if (ZERO(surfB->BoundingBox().Volume())) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to