7 from salome.geom import geomBuilder
8 geompy = geomBuilder.New(salome.myStudy)
10 import SMESH, SALOMEDS
11 from salome.smesh import smeshBuilder
12 smesh = smeshBuilder.New(salome.myStudy)
13 import salome_notebook
16 box = geompy.MakeBoxDXDYDZ(100, 100, 100)
17 geompy.addToStudy( box, "box" )
19 mesh = smesh.Mesh(box)
20 mesh.Segment().NumberOfSegments(3)
25 allFaces = mesh.GetElementsByType(SMESH.FACE)
26 mesh.RemoveElements( allFaces[0:2])
28 bareGroup = mesh.MakeGroup("bare faces", SMESH.FACE, SMESH.FT_BareBorderFace)
29 assert(bareGroup.Size() == 3)