]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Mantis issue 0021075: Problem with GetInplace.
authorjfa <jfa@opencascade.com>
Thu, 18 Nov 2010 12:38:24 +0000 (12:38 +0000)
committerjfa <jfa@opencascade.com>
Thu, 18 Nov 2010 12:38:24 +0000 (12:38 +0000)
doc/salome/gui/GEOM/images/get_in_place_lost_part.png [new file with mode: 0644]
src/GEOM_SWIG/geompyDC.py

diff --git a/doc/salome/gui/GEOM/images/get_in_place_lost_part.png b/doc/salome/gui/GEOM/images/get_in_place_lost_part.png
new file mode 100644 (file)
index 0000000..2abc843
Binary files /dev/null and b/doc/salome/gui/GEOM/images/get_in_place_lost_part.png differ
index 86ebc2a67d307b1f60551a539518ecaff840bb94..afe0785c5538ce715340a83e6d558481f729a8c6 100644 (file)
@@ -1995,8 +1995,14 @@ class geompyDC(GEOM._objref_GEOM_Gen):
         #  @param theShapeWhat Shape, specifying what to find.
         #  @return Group of all found sub-shapes or a single found sub-shape.
         #
+        #  @note This function has a restriction on argument shapes.
+        #        If \a theShapeWhere has curved parts with significantly
+        #        outstanding centres (i.e. the mass centre of a part is closer to
+        #        \a theShapeWhat than to the part), such parts will not be found.
+        #        @image html get_in_place_lost_part.png
+        #
         #  @ref swig_GetInPlace "Example"
-        def GetInPlace(self,theShapeWhere, theShapeWhat):
+        def GetInPlace(self, theShapeWhere, theShapeWhat):
             # Example: see GEOM_TestOthers.py
             anObj = self.ShapesOp.GetInPlace(theShapeWhere, theShapeWhat)
             RaiseIfFailed("GetInPlace", self.ShapesOp)