From: eap Date: Tue, 8 Feb 2011 10:26:55 +0000 (+0000) Subject: 0021153]: [CEA] non regression test fails X-Git-Tag: StartingPortingMED3~72 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ae0943024f3416658be5ed1a8c781c44c2f0074e;p=modules%2Fsmesh.git 0021153]: [CEA] non regression test fails Fix Mesh.Prism(): replace ExtractShapes() by SubShapeAll() again --- diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 288851cc6..1a9fdbe48 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -1361,8 +1361,8 @@ class Mesh: shape = geom if shape==0: shape = self.geom - nbSolids = len( self.geompyD.ExtractShapes( shape, geompyDC.ShapeType["SOLID"] )) - nbShells = len( self.geompyD.ExtractShapes( shape, geompyDC.ShapeType["SHELL"] )) + nbSolids = len( self.geompyD.SubShapeAll( shape, geompyDC.ShapeType["SOLID"] )) + nbShells = len( self.geompyD.SubShapeAll( shape, geompyDC.ShapeType["SHELL"] )) if nbSolids == 0 or nbSolids == nbShells: return Mesh_Prism3D(self, geom) return Mesh_RadialPrism3D(self, geom)