From 910ec49d5b37696717373ba9f2a9320e36222bc1 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 15 Dec 2010 09:59:02 +0000 Subject: [PATCH] Fix problem in GetIGESUnit() caused by changes in SubShapeAll() function's behavior --- src/GEOM_SWIG/geompyDC.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GEOM_SWIG/geompyDC.py b/src/GEOM_SWIG/geompyDC.py index fe8904335..fc2081f32 100644 --- a/src/GEOM_SWIG/geompyDC.py +++ b/src/GEOM_SWIG/geompyDC.py @@ -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: -- 2.39.2