]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Fix problem in GetIGESUnit() caused by changes in SubShapeAll() function's behavior
authorvsr <vsr@opencascade.com>
Wed, 15 Dec 2010 09:59:02 +0000 (09:59 +0000)
committervsr <vsr@opencascade.com>
Wed, 15 Dec 2010 09:59:02 +0000 (09:59 +0000)
src/GEOM_SWIG/geompyDC.py

index fe8904335ba9333c5c07d132e908c6d0bd185484..fc2081f326efbd7b9818090fad09a3d9eee9f7f5 100644 (file)
@@ -3623,7 +3623,10 @@ class geompyDC(GEOM._objref_GEOM_Gen):
             #RaiseIfFailed("Import", self.InsertOp)
             # recieve name using returned vertex
             UnitName = "M"
-            vertices = self.SubShapeAll(anObj,ShapeType["VERTEX"])
+            if anObj.GetShapeType() == GEOM.VERTEX:
+                vertices = [anObj]
+            else:
+                vertices = self.SubShapeAll(anObj,ShapeType["VERTEX"])
             if len(vertices)>0:
                 p = self.PointCoordinates(vertices[0])
                 if abs(p[0]-0.01) < 1.e-6: