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

janehu at mcs.anl.gov janehu at mcs.anl.gov
Wed Dec 10 10:40:29 CST 2008


Author: janehu
Date: 2008-12-10 10:40:29 -0600 (Wed, 10 Dec 2008)
New Revision: 2477

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Fixed for section code, passed itaps/testgeom test.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-12-10 16:08:52 UTC (rev 2476)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-12-10 16:40:29 UTC (rev 2477)
@@ -4626,7 +4626,8 @@
   gp_Dir normal_dir(normal.x(), normal.y(), normal.z()); 
   gp_Pln plane(pt, normal_dir);
   gp_Vec vec(normal_dir);
-  pt.Translated(vec);
+  pt =  pt.Translated(vec);
+
   TopoDS_Face face = BRepBuilderAPI_MakeFace(plane);
   TopoDS_Solid solid = BRepPrimAPI_MakeHalfSpace(face, pt);
    




More information about the cgma-dev mailing list