[cgma-dev] r2526 - cgm/trunk/geom/OCC
janehu at mcs.anl.gov
janehu at mcs.anl.gov
Fri Jan 9 15:10:43 CST 2009
Author: janehu
Date: 2009-01-09 15:10:42 -0600 (Fri, 09 Jan 2009)
New Revision: 2526
Modified:
cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Changed to make a non-const body pointer point to the same thing as the const pointer does.
Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp 2009-01-09 20:51:43 UTC (rev 2525)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp 2009-01-09 21:10:42 UTC (rev 2526)
@@ -4512,9 +4512,7 @@
//tool_body is a const pointer points to varible BodySM object
//here trying to create a non-const pointer points to the same BodySM object.
- BodySM *body, *body2;
- body = brick(1,1,1);
- body2 = body;
+ BodySM *body;
*body = *tool_body;
CubitStatus stat = intersect(body, webcut_body_list, results_list,
@@ -4532,8 +4530,6 @@
stat = subtract(tool_bodies, webcut_body_list, results_list, imprint,
CUBIT_TRUE);
- OCCQueryEngine::instance()->delete_solid_model_entities(body2);
-
return stat;
}
More information about the cgma-dev
mailing list