From b0e4d359c3eabdcc6a0f2289b6f3170db0f50264 Mon Sep 17 00:00:00 2001 From: azv Date: Wed, 3 Feb 2021 09:43:54 +0300 Subject: [PATCH] Revert "bos #20546: EDF 22644 - Offset not closed." This reverts commit 4958e9d785874ce1f24de49a56b53e9bee11bd65. --- src/GeomAlgoAPI/GeomAlgoAPI_WireBuilder.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_WireBuilder.cpp b/src/GeomAlgoAPI/GeomAlgoAPI_WireBuilder.cpp index a7b313945..2a6c42497 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_WireBuilder.cpp +++ b/src/GeomAlgoAPI/GeomAlgoAPI_WireBuilder.cpp @@ -34,7 +34,6 @@ #include #include #include -#include #include #include @@ -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 -- 2.39.2