]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Add some doc after iteration
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 3 Aug 2022 11:26:04 +0000 (13:26 +0200)
committerjfa <jfa@opencascade.com>
Fri, 4 Nov 2022 10:11:06 +0000 (13:11 +0300)
doc/salome/gui/GEOM/images/Shape_proximity_0.png [new file with mode: 0644]
doc/salome/gui/GEOM/images/Shape_proximity_1.png [new file with mode: 0644]
doc/salome/gui/GEOM/input/shape_proximity.doc

diff --git a/doc/salome/gui/GEOM/images/Shape_proximity_0.png b/doc/salome/gui/GEOM/images/Shape_proximity_0.png
new file mode 100644 (file)
index 0000000..196b764
Binary files /dev/null and b/doc/salome/gui/GEOM/images/Shape_proximity_0.png differ
diff --git a/doc/salome/gui/GEOM/images/Shape_proximity_1.png b/doc/salome/gui/GEOM/images/Shape_proximity_1.png
new file mode 100644 (file)
index 0000000..1217989
Binary files /dev/null and b/doc/salome/gui/GEOM/images/Shape_proximity_1.png differ
index 5c22223f90f8a95d39bf910fa4b2fcbdad24736d..fc82ece1e98f43b2909a5e3e8bf3940cc8bbfd2e 100644 (file)
@@ -3,6 +3,27 @@
 \page shape_proximity_page Shape Proximity
 
 The Shape Proximity operation calculates maximal of all possible distances between two shapes.
+Considering this case :
+
+\image html Shape_proximity_0.png
+
+The proximity of blue shape to the red one is computed like this :
+For each point of blue the distance to the red is computed using perpendicular projection. The proximity value returned is equal to maximal value of all of this distances.
+To do that the implemented algorithm
+
+1 - sampling shapes by points then calculating the distance from each sample point from one shape to another
+
+2 - find the position which gives the maximal distance
+
+3 - improve the proximity value basing on the exact shapes using the points found on step 2 as a start position
+
+It may happen that for some point of blue shape no distance to red shape exist using perpendicular projection.
+This is typically the case here :
+
+\image html Shape_proximity_1.png
+
+In the case of no perpendicular projection of a point on blue shape exists, instead of perpendicular projection the minimal distance to border point of red shape is considered.
+The distance from EndBlue Point is taken using EndRed Point (black line represents the distance for EndBlue).
 
 This is just a TUI functionality. The provided class
 <pre>