From: abv Date: Sun, 6 Dec 2020 16:20:47 +0000 (+0300) Subject: 0031977: Modeling Algorithms - useless static variable in BRepFill_OffsetWire::Init... X-Git-Tag: V7_6_0_beta~361 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=954caad0948eb566a658b564cede68266c08ecb8;p=occt.git 0031977: Modeling Algorithms - useless static variable in BRepFill_OffsetWire::Init() preventing its parallel usage Removed useless "static" before local variable and some commented code --- diff --git a/src/BRepFill/BRepFill_OffsetWire.cxx b/src/BRepFill/BRepFill_OffsetWire.cxx index 7e48817988..362092bb04 100644 --- a/src/BRepFill/BRepFill_OffsetWire.cxx +++ b/src/BRepFill/BRepFill_OffsetWire.cxx @@ -373,34 +373,25 @@ void BRepFill_OffsetWire::Init(const TopoDS_Face& Spine, myMap.Clear(); myMapSpine.Clear(); + //------------------------------------------------------------------ // cut the spine for bissectors. //------------------------------------------------------------------ - // Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 Begin - static BRepMAT2d_Explorer Exp; - + BRepMAT2d_Explorer Exp; Exp.Perform(mySpine); - - // TopoDS_Face anOldSpine = mySpine; - mySpine = TopoDS::Face(Exp.ModifiedShape(mySpine)); PrepareSpine (); - // Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 End TopoDS_Shape aShape; BRepFill_IndexedDataMapOfOrientedShapeListOfShape aMap; Standard_Boolean Done; if (KPartCircle(myWorkSpine,1.,myIsOpenResult,0.,aShape,aMap,Done)) return; - //----------------------------------------------------- // Calculate the map of bissectors to the left. // and Links Topology -> base elements of the map. //----------------------------------------------------- - // Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 Begin - // static BRepMAT2d_Explorer Exp; - // Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 End Exp.Perform(myWorkSpine); myBilo.Compute(Exp, 1 ,MAT_Left, myJoinType, myIsOpenResult); myLink.Perform(Exp,myBilo);