[MOAB-dev] r4696 - MOAB/trunk/src/io

iulian at mcs.anl.gov iulian at mcs.anl.gov
Wed Mar 30 21:58:51 CDT 2011


Author: iulian
Date: 2011-03-30 21:58:48 -0500 (Wed, 30 Mar 2011)
New Revision: 4696

Modified:
   MOAB/trunk/src/io/ReadCGM.cpp
Log:
the convention for senses is now changed: +1 is forward, -1 is reverse, 
0 is both senses



Modified: MOAB/trunk/src/io/ReadCGM.cpp
===================================================================
--- MOAB/trunk/src/io/ReadCGM.cpp	2011-03-30 22:46:58 UTC (rev 4695)
+++ MOAB/trunk/src/io/ReadCGM.cpp	2011-03-31 02:58:48 UTC (rev 4696)
@@ -273,12 +273,12 @@
     }
     
     if (forward) {
-      rval = myGeomTool->set_sense( ci->second, entmap[3][forward], true );
+      rval = myGeomTool->set_sense( ci->second, entmap[3][forward], 1 );
       if (MB_SUCCESS != rval)
         return rval;
     }
     if (reverse) {
-      rval = myGeomTool->set_sense( ci->second, entmap[3][reverse], false );
+      rval = myGeomTool->set_sense( ci->second, entmap[3][reverse], -1 );
       if (MB_SUCCESS != rval)
         return rval;
     }
@@ -298,12 +298,12 @@
       if (ce->get_sense() == CUBIT_UNKNOWN || 
           ce->get_sense() != edge->get_curve_ptr()->bridge_sense()) {
         ents.push_back(face);
-        senses.push_back(CUBIT_REVERSED);
+        senses.push_back(-1);
       }
       if (ce->get_sense() == CUBIT_UNKNOWN || 
           ce->get_sense() == edge->get_curve_ptr()->bridge_sense()) {
         ents.push_back(face);
-        senses.push_back(CUBIT_FORWARD);
+        senses.push_back(1);
       }
     }
     



















More information about the moab-dev mailing list