8 # create open shell: a box without one plane
9 box = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
10 FaceList = geompy.SubShapeAll(box, geompy.ShapeType["FACE"])
11 FaceList.remove(FaceList[5])
12 box = geompy.MakeShell(FaceList)
13 idbox = geompy.addToStudy(box, "box")
16 mesh = smesh.Mesh(box, "Mesh_free_borders")
18 algo.NumberOfSegments(5)
19 algo = mesh.Triangle()
20 algo.MaxElementArea(20.)
23 # criterion : free borders
24 aFilter = smesh.GetFilter(smesh.EDGE, smesh.FT_FreeBorders)
25 anIds = mesh.GetIdsFromFilter(aFilter)
28 print "Criterion: Free borders Nb = ", len(anIds)
30 for i in range(len(anIds)):
31 if j > 20: j = 1; print ""
38 aGroup = mesh.GetMesh().CreateGroup(smesh.EDGE, "Free borders")
41 salome.sg.updateObjBrowser(1)