0021153]: [CEA] non regression test fails

Fix Mesh.Prism(): replace ExtractShapes() by SubShapeAll() again
This commit is contained in:
eap 2011-02-08 10:26:55 +00:00
parent 0953f1790f
commit ae0943024f

View 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)