X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_GroupLyingOnGeom.py;h=26097adb8ba00f58c01cd6ea08fd4ce90c699e4b;hb=0cf919dde01c300a8f74d697198fba6538560c22;hp=0df585ed81f50b06bba1149dee21b2f824d37a68;hpb=090aff07266d376ae028ae43434bdea7c0a0f9bb;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py b/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py index 0df585ed8..26097adb8 100644 --- a/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py +++ b/src/SMESH_SWIG/SMESH_GroupLyingOnGeom.py @@ -1,9 +1,7 @@ -import SMESH +from meshpy 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() @@ -17,9 +15,9 @@ def BuildGroupLyingOn(theMesh, theElemType, theName, theShape): aGroup.Add(anIds) #Example -from SMESH_test1 import * +## from SMESH_test1 import * -smesh.Compute(mesh, box) -BuildGroupLyingOn(mesh, SMESH.FACE, "Group of faces lying on edge", edge ) +## smesh.Compute(mesh, box) +## BuildGroupLyingOn(mesh, SMESH.FACE, "Group of faces lying on edge", edge ) -salome.sg.updateObjBrowser(1); +## salome.sg.updateObjBrowser(1);