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

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Wed Jan 28 15:31:20 CST 2009


Author: kraftche
Date: 2009-01-28 15:31:20 -0600 (Wed, 28 Jan 2009)
New Revision: 2589

Modified:
   cgm/trunk/itaps/iGeom.h
   cgm/trunk/itaps/iGeom_CGMA.cc
Log:
add iMesh_deleteAll

Modified: cgm/trunk/itaps/iGeom.h
===================================================================
--- cgm/trunk/itaps/iGeom.h	2009-01-28 00:27:45 UTC (rev 2588)
+++ cgm/trunk/itaps/iGeom.h	2009-01-28 21:31:20 UTC (rev 2589)
@@ -2061,6 +2061,10 @@
                                 iBase_EntityHandle* geom_entity2,
                                 int* err );
 
+  /**\brief Delete all entities and sets
+   */
+  void iGeom_deleteAll( iGeom_Instance, int* err );
+
     /**\brief  Delete specified entity
      *
      * Delete specified entity

Modified: cgm/trunk/itaps/iGeom_CGMA.cc
===================================================================
--- cgm/trunk/itaps/iGeom_CGMA.cc	2009-01-28 00:27:45 UTC (rev 2588)
+++ cgm/trunk/itaps/iGeom_CGMA.cc	2009-01-28 21:31:20 UTC (rev 2589)
@@ -235,6 +235,8 @@
 
 extern "C" {
 
+static bool cgm_initialized = false;
+
 void iGeom_getDescription( iGeom_Instance geom,
                            char* descr,
                            int* err,
@@ -5139,8 +5141,16 @@
   
   RETURN(iBase_SUCCESS);
 }
-      
+
 void
+iGeom_deleteAll( iGeom_Instance , int* err )
+{
+  GeometryQueryTool::instance()->delete_geometry();
+  *err = iBase_SUCCESS;
+}
+
+
+void
 iGeom_deleteEnt (iGeom_Instance instance,
                  /*in*/ iBase_EntityHandle geom_entity,
                  int* err)



More information about the cgma-dev mailing list