From d8a4fd0b8ca90a74787d942d3c3fe732979777c3 Mon Sep 17 00:00:00 2001 From: prascle Date: Wed, 17 Apr 2013 20:33:51 +0000 Subject: [PATCH] PR: correction due to refactoring --- src/SMESH_SWIG/StdMeshersBuilder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SMESH_SWIG/StdMeshersBuilder.py b/src/SMESH_SWIG/StdMeshersBuilder.py index e2f1d5f46..ee05f82ef 100644 --- a/src/SMESH_SWIG/StdMeshersBuilder.py +++ b/src/SMESH_SWIG/StdMeshersBuilder.py @@ -861,9 +861,9 @@ class StdMeshersBuilder_Prism3D(Mesh_Algorithm): shape = geom if not shape: shape = mesh.geom - from geompy import SubShapeAll, ShapeType - nbSolids = len( SubShapeAll( shape, ShapeType["SOLID"] )) - nbShells = len( SubShapeAll( shape, ShapeType["SHELL"] )) + from salome.geom import geomBuilder + nbSolids = len( geomBuilder.geom.SubShapeAll( shape, geomBuilder.geomBuilder.ShapeType["SOLID"] )) + nbShells = len( geomBuilder.geom.SubShapeAll( shape, geomBuilder.geomBuilder.ShapeType["SHELL"] )) if nbSolids == 0 or nbSolids == nbShells: self.Create(mesh, geom, "Prism_3D") pass -- 2.39.2