[cgma-dev] r4471 - cgm/trunk/geom/OCC

Jiangtao Hu jiangtao_ma at yahoo.com
Tue Jan 25 16:42:25 CST 2011


Sorry, guys. I should've checked it.
 
Jane

--- On Tue, 1/25/11, tautges at mcs.anl.gov <tautges at mcs.anl.gov> wrote:


From: tautges at mcs.anl.gov <tautges at mcs.anl.gov>
Subject: [cgma-dev] r4471 - cgm/trunk/geom/OCC
To: cgma-dev at mcs.anl.gov
Date: Tuesday, January 25, 2011, 4:09 PM


Author: tautges
Date: 2011-01-25 15:09:54 -0600 (Tue, 25 Jan 2011)
New Revision: 4471

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Fixing a few returns; JANE - YOU SHOULD CHECK THESE.



Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp    2011-01-25 21:05:19 UTC (rev 4470)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp    2011-01-25 21:09:54 UTC (rev 4471)
@@ -1968,7 +1968,7 @@
   double area = myProps.Mass();
   double tol = get_sme_resabs_tolerance();
   if(area < tol * tol)
-    return CUBIT_FAILURE;
+    return NULL;

   if (!OCCMap->IsBound(aShape))
   {
@@ -2169,7 +2169,7 @@
   BRepGProp::LinearProperties(aShape, myProps);
   double length =  myProps.Mass();
   if(length < get_sme_resabs_tolerance())
-    return CUBIT_FAILURE;
+    return NULL;

   if (!OCCMap->IsBound(aShape)) 
     {
































      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20110125/d60d083c/attachment.htm>


More information about the cgma-dev mailing list