From: aavtamon Date: Thu, 24 Dec 2020 08:51:11 +0000 (+0300) Subject: Location and tolerance was added. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=0e62be312d4852bf7d4b456960e96f2f1639563c;p=occt-copy.git Location and tolerance was added. --- diff --git a/src/ShapeBuild/ShapeBuild_Edge.cxx b/src/ShapeBuild/ShapeBuild_Edge.cxx index 12487073d9..491c7860ec 100644 --- a/src/ShapeBuild/ShapeBuild_Edge.cxx +++ b/src/ShapeBuild/ShapeBuild_Edge.cxx @@ -636,7 +636,10 @@ Standard_Boolean ShapeBuild_Edge::BuildCurve3d (const TopoDS_Edge& edge) const Standard_Real aDistance = P1.Distance(P2); Handle(Geom_TrimmedCurve) aNewCurve = new Geom_TrimmedCurve(aLine, 0.0, aDistance); BRep_Builder aBuilder; - aBuilder.UpdateEdge(edge, aNewCurve, Precision::Confusion()); + Standard_Real aTol = BRep_Tool::Tolerance(edge); + aLocation = edge.Location(); + aBuilder.UpdateEdge(edge, aNewCurve, aLocation, aTol); + return Standard_True; } } //End of the new code