[MOAB-dev] r3524 - MOAB/trunk

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Thu Feb 4 10:31:11 CST 2010


Author: kraftche
Date: 2010-02-04 10:31:11 -0600 (Thu, 04 Feb 2010)
New Revision: 3524

Modified:
   MOAB/trunk/MBSkinner.cpp
Log:
fix bug where no-adj skinner was not returning reversed sides

Modified: MOAB/trunk/MBSkinner.cpp
===================================================================
--- MOAB/trunk/MBSkinner.cpp	2010-02-04 15:59:33 UTC (rev 3523)
+++ MOAB/trunk/MBSkinner.cpp	2010-02-04 16:31:11 UTC (rev 3524)
@@ -295,12 +295,12 @@
       output_handles.swap( forward );
     else
       output_handles.merge( forward );
-    if (output_reverse_handles) {
-      if (output_reverse_handles->empty())
-        output_reverse_handles->swap( reverse );
-      else
-        output_reverse_handles->merge( reverse );
-    }
+    if (!output_reverse_handles)
+      output_handles.merge( reverse );
+    else if (output_reverse_handles->empty())
+      output_reverse_handles->swap( reverse );
+    else
+      output_reverse_handles->merge( reverse );
   }
   
   return MB_SUCCESS;  



More information about the moab-dev mailing list