[cgma-dev] r5641 - cgm/trunk/geom/OCC
janehu at mcs.anl.gov
janehu at mcs.anl.gov
Thu Jul 26 11:42:21 CDT 2012
Author: janehu
Date: 2012-07-26 11:42:21 -0500 (Thu, 26 Jul 2012)
New Revision: 5641
Modified:
cgm/trunk/geom/OCC/OCCBody.cpp
cgm/trunk/geom/OCC/OCCCurve.cpp
cgm/trunk/geom/OCC/OCCLoop.cpp
cgm/trunk/geom/OCC/OCCLump.cpp
cgm/trunk/geom/OCC/OCCModifyEngine.cpp
cgm/trunk/geom/OCC/OCCPoint.cpp
cgm/trunk/geom/OCC/OCCQueryEngine.cpp
cgm/trunk/geom/OCC/OCCQueryEngine.hpp
cgm/trunk/geom/OCC/OCCShell.cpp
cgm/trunk/geom/OCC/OCCSurface.cpp
Log:
Back port the changes made in merge-cubit13.1 branch, passed make check for cgm on occ6.5.2
Modified: cgm/trunk/geom/OCC/OCCBody.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCBody.cpp 2012-07-26 15:43:59 UTC (rev 5640)
+++ cgm/trunk/geom/OCC/OCCBody.cpp 2012-07-26 16:42:21 UTC (rev 5641)
@@ -158,10 +158,9 @@
else
{
- TopoDS_Compound * the_comp = new TopoDS_Compound(theshape);
if(myTopoDSShape)
- delete (TopoDS_Compound*)myTopoDSShape;
- myTopoDSShape = the_comp;
+ myTopoDSShape->Nullify();
+ *myTopoDSShape = theshape;
}
}
Modified: cgm/trunk/geom/OCC/OCCCurve.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCCurve.cpp 2012-07-26 15:43:59 UTC (rev 5640)
+++ cgm/trunk/geom/OCC/OCCCurve.cpp 2012-07-26 16:42:21 UTC (rev 5641)
@@ -150,10 +150,9 @@
point->remove_curve(this);
}
}
- TopoDS_Edge* the_edge = new TopoDS_Edge(edge);
if(myTopoDSEdge)
- delete (TopoDS_Edge *)myTopoDSEdge;
- myTopoDSEdge = the_edge;
+ myTopoDSEdge->Nullify();
+ *myTopoDSEdge = edge;
}
//-------------------------------------------------------------------------
Modified: cgm/trunk/geom/OCC/OCCLoop.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCLoop.cpp 2012-07-26 15:43:59 UTC (rev 5640)
+++ cgm/trunk/geom/OCC/OCCLoop.cpp 2012-07-26 16:42:21 UTC (rev 5641)
@@ -102,10 +102,9 @@
}
}
- TopoDS_Wire* the_wire = new TopoDS_Wire(loop);
if(myTopoDSWire)
- delete (TopoDS_Wire*)myTopoDSWire;
- myTopoDSWire = the_wire;
+ myTopoDSWire->Nullify();
+ *myTopoDSWire = loop;
}
More information about the cgma-dev
mailing list