1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Location and tolerance was added.

This commit is contained in:
aavtamon
2020-12-24 11:51:11 +03:00
parent dc05c4c0a7
commit 0e62be312d

View File

@@ -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