]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix GetAxisStruct() by replacing ExtractShapes() by SubShapeAll()
authoreap <eap@opencascade.com>
Tue, 22 Feb 2011 08:59:08 +0000 (08:59 +0000)
committereap <eap@opencascade.com>
Tue, 22 Feb 2011 08:59:08 +0000 (08:59 +0000)
src/SMESH_SWIG/smeshDC.py

index 74b26f44834fc24e80b319373e9af9838d040aa9..5c747288a122b74e5122bb26af4395ab19aa9f0d 100644 (file)
@@ -569,7 +569,7 @@ class smeshDC(SMESH._objref_SMESH_Gen):
     #  @return SMESH.AxisStruct
     #  @ingroup l1_auxiliary
     def GetAxisStruct(self,theObj):
-        edges = self.geompyD.ExtractShapes( theObj, geompyDC.ShapeType["EDGE"] )
+        edges = self.geompyD.SubShapeAll( theObj, geompyDC.ShapeType["EDGE"] )
         if len(edges) > 1:
             vertex1, vertex2 = self.geompyD.SubShapeAll( edges[0], geompyDC.ShapeType["VERTEX"] )
             vertex3, vertex4 = self.geompyD.SubShapeAll( edges[1], geompyDC.ShapeType["VERTEX"] )