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

janehu at mcs.anl.gov janehu at mcs.anl.gov
Wed Jan 2 13:53:33 CST 2008


Author: janehu
Date: 2008-01-02 13:53:33 -0600 (Wed, 02 Jan 2008)
New Revision: 1503

Modified:
   cgm/trunk/geom/OCC/OCCQueryEngine.cpp
Log:
Tested on body's volumn, center point, bounding box, vertex's is-equal, and vertex-vertex distance, refvolumn-vertex distance. fixed a little bug.

Modified: cgm/trunk/geom/OCC/OCCQueryEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2007-12-31 03:20:53 UTC (rev 1502)
+++ cgm/trunk/geom/OCC/OCCQueryEngine.cpp	2008-01-02 19:53:33 UTC (rev 1503)
@@ -152,8 +152,8 @@
 {
   instance_ = NULL;
   delete OCCMap;
-  delete[] OccToCGM;
-  delete[] BodyList;
+  delete OccToCGM;
+  while( BodyList->size() ) delete BodyList->pop();
   delete[] ShellList;
   delete[] WireList;
   delete[] SurfaceList;
@@ -669,7 +669,7 @@
 
   distance = distShapeShape.Value();
   gp_Pnt pnt1 = distShapeShape.PointOnShape1(1);
-  gp_Pnt pnt2 = distShapeShape.PointOnShape2(2);
+  gp_Pnt pnt2 = distShapeShape.PointOnShape2(1);
   pos1 = CubitVector(pnt1.X(), pnt1.Y(), pnt1.Z());
   pos2 = CubitVector(pnt2.X(), pnt2.Y(), pnt2.Z());
   return CUBIT_SUCCESS;




More information about the cgma-dev mailing list