Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #29468] [EDF] (2022-T1) Advanced geometry features: distance Edge-Edge & Face...
[modules/shaper.git]
/
src
/
FeaturesPlugin
/
FeaturesPlugin_Measurement.h
diff --git
a/src/FeaturesPlugin/FeaturesPlugin_Measurement.h
b/src/FeaturesPlugin/FeaturesPlugin_Measurement.h
index 5ef1a1c0896e6fbabfb2a8418d24f6a782cf5f89..e4fdc1d6c30d8f61e526d4ae6e06a5f9eb5fb4a5 100644
(file)
--- a/
src/FeaturesPlugin/FeaturesPlugin_Measurement.h
+++ b/
src/FeaturesPlugin/FeaturesPlugin_Measurement.h
@@
-74,6
+74,13
@@
public:
return MY_MEASURE_ID;
}
return MY_MEASURE_ID;
}
+ /// Attribute name for distance measure.
+ inline static const std::string& MEASURE_PROXIMITY()
+ {
+ static const std::string MY_MEASURE_ID("Proximity");
+ return MY_MEASURE_ID;
+ }
+
/// Attribute name for radius measure.
inline static const std::string& MEASURE_RADIUS()
{
/// Attribute name for radius measure.
inline static const std::string& MEASURE_RADIUS()
{
@@
-211,6
+218,8
@@
private:
void computeLength();
/// Compute minimal distance between pair of shapes
void computeDistance();
void computeLength();
/// Compute minimal distance between pair of shapes
void computeDistance();
+ /// Compute proximity (maximum of all minimal distances between pair of shapes)
+ void computeProximity();
/// Compute radius of circular edge, cylindrical surface or sphere.
void computeRadius();
/// Compute angle(s) between pair of edges if they are intersected
/// Compute radius of circular edge, cylindrical surface or sphere.
void computeRadius();
/// Compute angle(s) between pair of edges if they are intersected