mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
PR: correction due to refactoring
This commit is contained in:
parent
016f5df550
commit
d8a4fd0b8c
@ -861,9 +861,9 @@ class StdMeshersBuilder_Prism3D(Mesh_Algorithm):
|
|||||||
shape = geom
|
shape = geom
|
||||||
if not shape:
|
if not shape:
|
||||||
shape = mesh.geom
|
shape = mesh.geom
|
||||||
from geompy import SubShapeAll, ShapeType
|
from salome.geom import geomBuilder
|
||||||
nbSolids = len( SubShapeAll( shape, ShapeType["SOLID"] ))
|
nbSolids = len( geomBuilder.geom.SubShapeAll( shape, geomBuilder.geomBuilder.ShapeType["SOLID"] ))
|
||||||
nbShells = len( SubShapeAll( shape, ShapeType["SHELL"] ))
|
nbShells = len( geomBuilder.geom.SubShapeAll( shape, geomBuilder.geomBuilder.ShapeType["SHELL"] ))
|
||||||
if nbSolids == 0 or nbSolids == nbShells:
|
if nbSolids == 0 or nbSolids == nbShells:
|
||||||
self.Create(mesh, geom, "Prism_3D")
|
self.Create(mesh, geom, "Prism_3D")
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user