1 # Borders at Multiconnection
9 # create open shell: a box without one plane
10 box = geompy.MakeBox(0., 0., 0., 20., 20., 15.)
11 FaceList = geompy.SubShapeAll(box, geompy.ShapeType["FACE"])
12 FaceList.remove(FaceList[5])
13 box = geompy.MakeShell(FaceList)
14 idbox = geompy.addToStudy(box, "box")
17 mesh = smesh.Mesh(box, "Mesh_borders_at_multi-connections")
19 algo.NumberOfSegments(5)
20 algo = mesh.Triangle()
21 algo.MaxElementArea(20.)
24 # Criterion : Borders at multi-connection
27 aFilter = smesh.GetFilter(smesh.EDGE, smesh.FT_MultiConnection, smesh.FT_EqualTo, nb_conn)
28 anIds = mesh.GetIdsFromFilter(aFilter)
31 print "Criterion: Borders at multi-connections Nb = ", len(anIds)
33 for i in range(len(anIds)):
34 if j > 20: j = 1; print ""
41 aGroup = mesh.GetMesh().CreateGroup(smesh.EDGE, "Borders at multi-connections")
44 salome.sg.updateObjBrowser(1)