From: NATHALIE GORE Date: Mon, 12 Feb 2024 14:13:33 +0000 (+0100) Subject: Revert "EDF 25230 - Impossible to create directly a face" X-Git-Tag: V9_13_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3bfb88115e12b64d01e3e5606e4b84184deaceb2;p=modules%2Fgeom.git Revert "EDF 25230 - Impossible to create directly a face" This reverts commit aecc16bb8400d9673445a0485fc625ed28f71b9c. --- diff --git a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx index 0d9f65537..8f1f24850 100644 --- a/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ShapeDriver.cxx @@ -494,7 +494,6 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(Handle(TFunction_Logbook)& log) c Handle(TopTools_HSequenceOfShape) aSeqEdgesIn = new TopTools_HSequenceOfShape; TColStd_IndexedDataMapOfTransientTransient aMapTShapes; - Standard_Real aTolerance = Precision::Confusion(); for (ind = 1; ind <= nbshapes; ind++) { Handle(GEOM_Function) aRefSh_i = Handle(GEOM_Function)::DownCast(aShapes->Value(ind)); TopoDS_Shape aSh_i = aRefSh_i->GetValue(); @@ -504,11 +503,7 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(Handle(TFunction_Logbook)& log) c if (aMapEdges.Add(anExpE_i.Current())) { // Copy the original shape. TopoDS_Shape aShapeCopy; - Standard_Real aCurTol = BRep_Tool::MaxTolerance(anExpE_i.Current(), TopAbs_EDGE); - if(aCurTol > aTolerance) - { - aTolerance = aCurTol; - } + TNaming_CopyShape::CopyTool (anExpE_i.Current(), aMapTShapes, aShapeCopy); aSeqEdgesIn->Append(aShapeCopy); @@ -522,7 +517,7 @@ Standard_Integer GEOMImpl_ShapeDriver::Execute(Handle(TFunction_Logbook)& log) c // 2. Connect edges to wires of maximum length Handle(TopTools_HSequenceOfShape) aSeqWiresOut; - ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, aTolerance, + ShapeAnalysis_FreeBounds::ConnectEdgesToWires(aSeqEdgesIn, Precision::Confusion(), /*shared*/Standard_False, aSeqWiresOut); //modified by NIZNHY-PKV Wed Dec 28 13:46:55 2011f //KeepEdgesOrder(aSeqEdgesIn, aSeqWiresOut);