[MOAB-dev] r4709 - MOAB/trunk/src/io
iulian at mcs.anl.gov
iulian at mcs.anl.gov
Fri Apr 1 10:26:21 CDT 2011
Author: iulian
Date: 2011-04-01 10:26:21 -0500 (Fri, 01 Apr 2011)
New Revision: 4709
Modified:
MOAB/trunk/src/io/ReadCGM.cpp
Log:
use the enum for sense type
Modified: MOAB/trunk/src/io/ReadCGM.cpp
===================================================================
--- MOAB/trunk/src/io/ReadCGM.cpp 2011-04-01 14:09:23 UTC (rev 4708)
+++ MOAB/trunk/src/io/ReadCGM.cpp 2011-04-01 15:26:21 UTC (rev 4709)
@@ -273,12 +273,12 @@
}
if (forward) {
- rval = myGeomTool->set_sense( ci->second, entmap[3][forward], 1 );
+ rval = myGeomTool->set_sense( ci->second, entmap[3][forward], SENSE_FORWARD );
if (MB_SUCCESS != rval)
return rval;
}
if (reverse) {
- rval = myGeomTool->set_sense( ci->second, entmap[3][reverse], -1 );
+ rval = myGeomTool->set_sense( ci->second, entmap[3][reverse], SENSE_REVERSE );
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(-1);
+ senses.push_back(SENSE_REVERSE);
}
if (ce->get_sense() == CUBIT_UNKNOWN ||
ce->get_sense() == edge->get_curve_ptr()->bridge_sense()) {
ents.push_back(face);
- senses.push_back(1);
+ senses.push_back(SENSE_FORWARD);
}
}
More information about the moab-dev
mailing list