]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021153]: [CEA] non regression test fails
authoreap <eap@opencascade.com>
Tue, 8 Feb 2011 10:26:55 +0000 (10:26 +0000)
committereap <eap@opencascade.com>
Tue, 8 Feb 2011 10:26:55 +0000 (10:26 +0000)
   Fix Mesh.Prism(): replace ExtractShapes() by SubShapeAll() again

src/SMESH_SWIG/smeshDC.py

index 288851cc6cfc0f4a969067335473114d04d0452b..1a9fdbe48ec336f8863a3ef8e4871f16fd41d732 100644 (file)
@@ -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)