[cgma-dev] r3265 - cgm/trunk/itaps

jvporter at wisc.edu jvporter at wisc.edu
Tue Nov 3 00:06:35 CST 2009


Author: jvporter
Date: 2009-11-03 00:06:34 -0600 (Tue, 03 Nov 2009)
New Revision: 3265

Modified:
   cgm/trunk/itaps/iGeom_CGMA.cc
Log:
Fix the order of entity sets in set-theoretic operations


Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc	2009-11-02 22:23:19 UTC (rev 3264)
+++ cgm/trunk/itaps/iGeom_CGMA.cc	2009-11-03 06:06:34 UTC (rev 3265)
@@ -5201,7 +5201,7 @@
     *result_entity_set = reinterpret_cast<iBase_EntitySetHandle>(set3);
   }
     
-  set3->subtract(const_cast<RefGroup*>(set2), const_cast<RefGroup*>(set1));
+  const_cast<RefGroup*>(set1)->subtract(const_cast<RefGroup*>(set2), set3);
   RETURN(iBase_SUCCESS);
 }
 
@@ -5225,7 +5225,7 @@
     *result_entity_set = reinterpret_cast<iBase_EntitySetHandle>(set3);
   }
 
-  set3->intersect(const_cast<RefGroup*>(set2), const_cast<RefGroup*>(set1));
+  const_cast<RefGroup*>(set1)->intersect(const_cast<RefGroup*>(set2), set3);
   RETURN(iBase_SUCCESS);
 }
 
@@ -5249,7 +5249,7 @@
     *result_entity_set = reinterpret_cast<iBase_EntitySetHandle>(set3);
   }
 
-  set3->unite(const_cast<RefGroup*>(set2), const_cast<RefGroup*>(set1));
+  const_cast<RefGroup*>(set1)->unite(const_cast<RefGroup*>(set2), set3);
   RETURN(iBase_SUCCESS);
 }
 



More information about the cgma-dev mailing list