mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-16 10:54:53 +03:00
0031977: Modeling Algorithms - useless static variable in BRepFill_OffsetWire::Init() preventing its parallel usage
Removed useless "static" before local variable and some commented code
This commit is contained in:
parent
c026141bb6
commit
954caad094
@ -373,34 +373,25 @@ void BRepFill_OffsetWire::Init(const TopoDS_Face& Spine,
|
|||||||
|
|
||||||
myMap.Clear();
|
myMap.Clear();
|
||||||
myMapSpine.Clear();
|
myMapSpine.Clear();
|
||||||
|
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// cut the spine for bissectors.
|
// cut the spine for bissectors.
|
||||||
//------------------------------------------------------------------
|
//------------------------------------------------------------------
|
||||||
// Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 Begin
|
BRepMAT2d_Explorer Exp;
|
||||||
static BRepMAT2d_Explorer Exp;
|
|
||||||
|
|
||||||
Exp.Perform(mySpine);
|
Exp.Perform(mySpine);
|
||||||
|
|
||||||
// TopoDS_Face anOldSpine = mySpine;
|
|
||||||
|
|
||||||
mySpine = TopoDS::Face(Exp.ModifiedShape(mySpine));
|
mySpine = TopoDS::Face(Exp.ModifiedShape(mySpine));
|
||||||
PrepareSpine ();
|
PrepareSpine ();
|
||||||
|
|
||||||
// Modified by Sergey KHROMOV - Tue Nov 26 17:39:03 2002 End
|
|
||||||
TopoDS_Shape aShape;
|
TopoDS_Shape aShape;
|
||||||
BRepFill_IndexedDataMapOfOrientedShapeListOfShape aMap;
|
BRepFill_IndexedDataMapOfOrientedShapeListOfShape aMap;
|
||||||
Standard_Boolean Done;
|
Standard_Boolean Done;
|
||||||
if (KPartCircle(myWorkSpine,1.,myIsOpenResult,0.,aShape,aMap,Done)) return;
|
if (KPartCircle(myWorkSpine,1.,myIsOpenResult,0.,aShape,aMap,Done)) return;
|
||||||
|
|
||||||
|
|
||||||
//-----------------------------------------------------
|
//-----------------------------------------------------
|
||||||
// Calculate the map of bissectors to the left.
|
// Calculate the map of bissectors to the left.
|
||||||
// and Links Topology -> base elements of the map.
|
// 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);
|
Exp.Perform(myWorkSpine);
|
||||||
myBilo.Compute(Exp, 1 ,MAT_Left, myJoinType, myIsOpenResult);
|
myBilo.Compute(Exp, 1 ,MAT_Left, myJoinType, myIsOpenResult);
|
||||||
myLink.Perform(Exp,myBilo);
|
myLink.Perform(Exp,myBilo);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user