Salome HOME
Merge from V6_main 19/03/2013
[modules/smesh.git] / doc / salome / examples / quality_controls_ex07.py
1 # Bare border faces
2
3 from smesh import *
4 SetCurrentStudy(salome.myStudy)
5
6 box = geompy.MakeBoxDXDYDZ(100, 100, 100)
7 geompy.addToStudy( box, "box" )
8
9 mesh = smesh.Mesh(box)
10 mesh.Segment().NumberOfSegments(3)
11 mesh.Quadrangle()
12 mesh.Compute()
13
14 # remove 2 faces
15 allFaces = mesh.GetElementsByType(FACE)
16 mesh.RemoveElements( allFaces[0:2])
17
18 bareGroup = mesh.MakeGroup("bare faces", FACE, FT_BareBorderFace)
19 assert(bareGroup.Size() == 3)