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

janehu at mcs.anl.gov janehu at mcs.anl.gov
Wed Nov 26 10:56:39 CST 2008


Author: janehu
Date: 2008-11-26 10:56:39 -0600 (Wed, 26 Nov 2008)
New Revision: 2286

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
Modified the hollow operation to create intersect corner as right angle instead of rounded, this behavior will be the same as acis.

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-11-26 16:33:30 UTC (rev 2285)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-11-26 16:56:39 UTC (rev 2286)
@@ -3728,7 +3728,9 @@
   
   double tol = 1.e-3; //hard coded for now, can be changed by application
   TopoDS_Shape* solid = shape_list.get();
-  BRepOffsetAPI_MakeThickSolid hollower(*solid, face_shapes, depth, tol);
+  BRepOffsetAPI_MakeThickSolid hollower(*solid, face_shapes, depth, tol,
+                                        BRepOffset_Skin, Standard_False,
+                                        Standard_False, GeomAbs_Intersection);
   TopoDS_Shape new_shape = hollower.Shape();
   TopoDS_Solid old_solid = TopoDS::Solid(*solid);
   OCCLump::update_OCC_entity(old_solid , new_shape, &hollower); 




More information about the cgma-dev mailing list