]> OCCT Git - occt-copy.git/commitdiff
Location and tolerance was added.
authoraavtamon <anton.avtamonov@opencascade.com>
Thu, 24 Dec 2020 08:51:11 +0000 (11:51 +0300)
committeraavtamon <anton.avtamonov@opencascade.com>
Thu, 24 Dec 2020 08:51:11 +0000 (11:51 +0300)
src/ShapeBuild/ShapeBuild_Edge.cxx

index 12487073d99ed5e82b2808875dec3c68764c671f..491c7860ec5997c5d2d87d63e7e72c6d3e2c6999 100644 (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