From: aavtamon Date: Thu, 14 Jan 2021 06:08:31 +0000 (+0300) Subject: Fixed tolerance. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=5014de17b492f0fed277b0f3040031e6766d8f0a;p=occt-copy.git Fixed tolerance. --- diff --git a/src/ShapeBuild/ShapeBuild_Edge.cxx b/src/ShapeBuild/ShapeBuild_Edge.cxx index a0cb98c535..3b0a0728a0 100644 --- a/src/ShapeBuild/ShapeBuild_Edge.cxx +++ b/src/ShapeBuild/ShapeBuild_Edge.cxx @@ -632,7 +632,7 @@ Standard_Boolean ShapeBuild_Edge::BuildCurve3d (const TopoDS_Edge& edge) const aLine->Translate(P1, P0); Handle(Geom_TrimmedCurve) aNewCurve = new Geom_TrimmedCurve(aLine, aFirst, aLast); BRep_Builder aBuilder; - Standard_Real aTol = BRep_Tool::Tolerance(edge); + Standard_Real aTol = Max(1.e-5, BRep_Tool::Tolerance(edge)); aBuilder.UpdateEdge(edge, aNewCurve, aLocation, aTol); } }