X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesAPI%2FFeaturesAPI_Measurement.h;h=35c51f9ba3d5f1f1704c6f841f9dacc9c32c9ee4;hb=77ce6d35ac8d2f0fdaecb4f23e0870bf74e36103;hp=bbbc67445715785e365c12aeba3ff2aa15fe73b8;hpb=97917d3698f5a2f7fc9596e7c755ff8f6751e373;p=modules%2Fshaper.git diff --git a/src/FeaturesAPI/FeaturesAPI_Measurement.h b/src/FeaturesAPI/FeaturesAPI_Measurement.h index bbbc67445..35c51f9ba 100644 --- a/src/FeaturesAPI/FeaturesAPI_Measurement.h +++ b/src/FeaturesAPI/FeaturesAPI_Measurement.h @@ -1,4 +1,4 @@ -// Copyright (C) 2018-2019 CEA/DEN, EDF R&D +// Copyright (C) 2018-2024 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -42,7 +42,7 @@ double measureDistance(const std::shared_ptr& thePart, const ModelHighAPI_Selection& theTo); /// \ingroup CPPHighAPI -/// \brief Calculate radius of circular. +/// \brief Calculate radius of circular edge, cylindrical surface or sphere. FEATURESAPI_EXPORT double measureRadius(const std::shared_ptr& thePart, const ModelHighAPI_Selection& theObject); @@ -62,4 +62,11 @@ double measureAngle(const std::shared_ptr& thePart, const ModelHighAPI_Selection& thePoint2, const ModelHighAPI_Selection& thePoint3); +/// \ingroup CPPHighAPI +/// \brief Calculate maximum of all distances between objects. +FEATURESAPI_EXPORT +double shapeProximity(const std::shared_ptr& thePart, + const ModelHighAPI_Selection& theFrom, + const ModelHighAPI_Selection& theTo); + #endif // FeaturesAPI_Measurement_H_