From 954caad0948eb566a658b564cede68266c08ecb8 Mon Sep 17 00:00:00 2001 From: abv Date: Sun, 6 Dec 2020 19:20:47 +0300 Subject: [PATCH] 0031977: Modeling Algorithms - useless static variable in BRepFill_OffsetWire::Init() preventing its parallel usage Removed useless "static" before local variable and some commented code --- src/BRepFill/BRepFill_OffsetWire.cxx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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);