Revision: 41910
          http://brlcad.svn.sourceforge.net/brlcad/?rev=41910&view=rev
Author:   starseeker
Date:     2011-01-04 02:03:17 +0000 (Tue, 04 Jan 2011)

Log Message:
-----------
pull the EQUAL out of iges_struct.h, replace its use with NEAR_EQUAL

Modified Paths:
--------------
    brlcad/trunk/src/conv/iges/getcurve.c
    brlcad/trunk/src/conv/iges/iges_struct.h

Modified: brlcad/trunk/src/conv/iges/getcurve.c
===================================================================
--- brlcad/trunk/src/conv/iges/getcurve.c       2011-01-04 01:58:57 UTC (rev 
41909)
+++ brlcad/trunk/src/conv/iges/getcurve.c       2011-01-04 02:03:17 UTC (rev 
41910)
@@ -729,9 +729,9 @@
                            ptr = ptr->next;
                        ptr->next = tmp_ptr;
                        ptr->next->prev = ptr;
-                       if (EQUAL(ptr->pt[X], tmp_ptr->pt[X]) &&
-                           EQUAL(ptr->pt[Y], tmp_ptr->pt[Y]) &&
-                           EQUAL(ptr->pt[Z], tmp_ptr->pt[Z])) {
+                       if (NEAR_EQUAL(ptr->pt[X], tmp_ptr->pt[X], TOL) &&
+                           NEAR_EQUAL(ptr->pt[Y], tmp_ptr->pt[Y], TOL) &&
+                           NEAR_EQUAL(ptr->pt[Z], tmp_ptr->pt[Z], TOL)) {
                            ptr->next = ptr->next->next;
                            if (ptr->next != NULL)
                                ptr->next->prev = ptr;

Modified: brlcad/trunk/src/conv/iges/iges_struct.h
===================================================================
--- brlcad/trunk/src/conv/iges/iges_struct.h    2011-01-04 01:58:57 UTC (rev 
41909)
+++ brlcad/trunk/src/conv/iges/iges_struct.h    2011-01-04 02:03:17 UTC (rev 
41910)
@@ -39,10 +39,6 @@
 #define        NAMESIZE        16      /* from db.h */
 
 #define        TOL             0.0005
-#define EQUAL( a, b )          ((brlabs( (a)-(b) ) < TOL) ? 1 : 0 )
-#define        SAMEPT( pt1, pt2 )      (EQUAL( pt1[X], pt2[X] ) && \
-                                EQUAL( pt1[Y], pt2[Y] ) && \
-                                EQUAL( pt1[Z], pt2[Z] ) )
 
 #define        Union           1
 #define        Intersect       2


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

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to