Revision: 55145
          http://brlcad.svn.sourceforge.net/brlcad/?rev=55145&view=rev
Author:   brlcad
Date:     2013-04-12 16:47:40 +0000 (Fri, 12 Apr 2013)
Log Message:
-----------
resolve a dead code condition introduced by the if 0 <= check.  if the case is 
<, it looks like it represents a failure earlier in the nmg processing.

Modified Paths:
--------------
    brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c

Modified: brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c
===================================================================
--- brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c   2013-04-12 16:03:50 UTC 
(rev 55144)
+++ brlcad/trunk/src/librt/primitives/nmg/nmg_pt_fu.c   2013-04-12 16:47:40 UTC 
(rev 55145)
@@ -1312,13 +1312,10 @@
            }
        } else if (lu->orientation == OT_SAME) {
            ot_same[lu_class]++;
-           if (lu_class == NMG_CLASS_AinB ||
-               lu_class == NMG_CLASS_AonBshared ||
-               lu_class == NMG_CLASS_AonBanti) {
-#if 0
-           if (lu_class == NMG_CLASS_AinB ||
-               lu_class == NMG_CLASS_AonBshared)
-#endif
+           if (lu_class == NMG_CLASS_AinB
+               || lu_class == NMG_CLASS_AonBshared
+               || lu_class == NMG_CLASS_AonBanti)
+           {
                ot_same_in++;
            }
        }
@@ -1332,10 +1329,7 @@
               ot_opposite[0], ot_opposite[1], ot_opposite[2], ot_opposite[3]);
     }
 
-    if (ot_same_in <= ot_opposite_out) {
-#if 0
     if (ot_same_in == ot_opposite_out) {
-#endif
        /* All the holes cancel out the solid loops */
        fu_class = NMG_CLASS_AoutB;
     } else if (ot_same_in > ot_opposite_out) {

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


------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to