fix GetSubMeshNodesId()

This commit is contained in:
eap 2012-07-18 12:41:15 +00:00
parent 171b3e8882
commit c4e4c8b73c

View File

@ -2037,7 +2037,7 @@ class Mesh:
# @ingroup l1_meshinfo # @ingroup l1_meshinfo
def GetSubMeshNodesId(self, Shape, all): def GetSubMeshNodesId(self, Shape, all):
if ( isinstance( Shape, geompyDC.GEOM._objref_GEOM_Object)): if ( isinstance( Shape, geompyDC.GEOM._objref_GEOM_Object)):
ShapeID = Shape.GetSubShapeIndices()[0] ShapeID = self.geompyD.GetSubShapeID( self.geom, Shape )
else: else:
ShapeID = Shape ShapeID = Shape
return self.mesh.GetSubMeshNodesId(ShapeID, all) return self.mesh.GetSubMeshNodesId(ShapeID, all)