Salome HOME
Mesh redesine. New fields added to specify whether hypothesis is main or additional...
[modules/smesh.git] / src / SMESH_SWIG / SMESH_GroupLyingOnGeom.py
index 660d3ad1b6a8413792482258848478083ce04a11..6a4533ea7415f92a046e1ab51f4be52bb7dfa609 100644 (file)
@@ -1,9 +1,7 @@
-import SMESH
+from smesh import *
 
 def BuildGroupLyingOn(theMesh, theElemType, theName, theShape):
-    aMeshGen = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
-
-    aFilterMgr = aMeshGen.CreateFilterManager()
+    aFilterMgr = smesh.CreateFilterManager()
     aFilter = aFilterMgr.CreateFilter()
    
     aLyingOnGeom = aFilterMgr.CreateLyingOnGeom()