1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

Fixed tolerance.

This commit is contained in:
aavtamon
2021-01-14 09:08:31 +03:00
parent 34c8a38852
commit 5014de17b4

View File

@@ -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);
}
}