Salome HOME
updated copyright message
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_WireBuilder.cpp
index a7b31394536b0c2bd46787c69c2278ba1240ab7f..9aab0b6f2b4e5ad40be470ee7da3c7db11112155 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2020  CEA/DEN, EDF R&D
+// Copyright (C) 2014-2023  CEA, EDF
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -34,7 +34,6 @@
 #include <TopoDS_Wire.hxx>
 #include <TopExp.hxx>
 #include <TopExp_Explorer.hxx>
-#include <ShapeFix_Wire.hxx>
 
 #include <cmath>
 #include <map>
@@ -165,15 +164,8 @@ GeomAlgoAPI_WireBuilder::GeomAlgoAPI_WireBuilder(const ListOfShape& theShapes,
     setImpl(aWireBuilder);
     setBuilderType(OCCT_BRepBuilderAPI_MakeShape);
 
-    // fix edges order (bos #20546)
-    TopoDS_Wire aWire = aWireBuilder->Wire();
-    Handle(ShapeFix_Wire) aFW = new ShapeFix_Wire;
-    aFW->Load(aWire);
-    aFW->FixReorder();
-    if (aFW->StatusReorder(ShapeExtend_DONE))
-      aWire = aFW->WireAPIMake();
-
     // split the result wire
+    TopoDS_Wire aWire = aWireBuilder->Wire();
     if (isSplitWire && BRep_Tool::IsClosed(aWire)) {
       TopoDS_Wire aNewWire;
       BRep_Builder aBuilder;
@@ -293,4 +285,4 @@ bool GeomAlgoAPI_WireBuilder::isSelfIntersected(const GeomShapePtr& theWire)
   }
 
   return false;
-}
+}
\ No newline at end of file