X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Edge.cpp;h=41cfa84a8b88710c496bf8656834ba84b93bf865;hb=41645ab455d24dcda650377d8c044e0578e01529;hp=6233a08c974b1dd86121295f110f9e9e09c652f2;hpb=47f4ee100cab87409534ba8b57e7c64582511fe3;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Edge.cpp b/src/GeomAPI/GeomAPI_Edge.cpp index 6233a08c9..41cfa84a8 100644 --- a/src/GeomAPI/GeomAPI_Edge.cpp +++ b/src/GeomAPI/GeomAPI_Edge.cpp @@ -461,6 +461,22 @@ void GeomAPI_Edge::setLastPointTolerance(const double theTolerance) BRep_Builder().UpdateVertex(aVLast, theTolerance); } +double GeomAPI_Edge::firstPointTolerance() const +{ + TopoDS_Edge anEdge = impl(); + TopoDS_Vertex aVFirst, aVLast; + TopExp::Vertices(anEdge, aVFirst, aVLast); + return BRep_Tool::Tolerance(aVFirst); +} + +double GeomAPI_Edge::lastPointTolerance() const +{ + TopoDS_Edge anEdge = impl(); + TopoDS_Vertex aVFirst, aVLast; + TopExp::Vertices(anEdge, aVFirst, aVLast); + return BRep_Tool::Tolerance(aVLast); +} + GeomPointPtr GeomAPI_Edge::middlePoint() const { GeomPointPtr aMiddlePoint;