X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pnt.cpp;h=97d66fc6e28ccefb821e4df20a37adb7048e015e;hb=f60dc9dd94d5d4b0ea07e3e3cbfd5b3028f0942d;hp=976d3949f3733bf96dddfe5502494f05f39f8b44;hpb=7074394f8f08413d885f63be01df6bd5007b868c;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pnt.cpp b/src/GeomAPI/GeomAPI_Pnt.cpp index 976d3949f..97d66fc6e 100644 --- a/src/GeomAPI/GeomAPI_Pnt.cpp +++ b/src/GeomAPI/GeomAPI_Pnt.cpp @@ -85,6 +85,20 @@ bool GeomAPI_Pnt::isEqual(const std::shared_ptr& theOther) const return distance(theOther) < Precision::Confusion(); } +bool GeomAPI_Pnt::isLess(const std::shared_ptr& theOther) const +{ + if (MY_PNT->X() + Precision::Confusion() < theOther->x()) + return true; + else if (MY_PNT->X() < theOther->x() + Precision::Confusion()) { + if (MY_PNT->Y() + Precision::Confusion() < theOther->y()) + return true; + else if (MY_PNT->Y() < theOther->y() + Precision::Confusion() && + MY_PNT->Z() + Precision::Confusion() < theOther->z()) + return true; + } + return false; +} + std::shared_ptr GeomAPI_Pnt::to2D(const std::shared_ptr& theOrigin, const std::shared_ptr& theDirX, const std::shared_ptr& theDirY) {