Salome HOME
bos #29171 Refactor testing procedure
[modules/smesh.git] / doc / examples / grouping_elements_ex09.py
1 # Creating groups of faces separated by sharp edges
2
3 import salome
4 salome.salome_init_without_session()
5
6 from salome.geom import geomBuilder
7 from salome.smesh import smeshBuilder
8
9 geom_builder = geomBuilder.New()
10 smesh_builder = smeshBuilder.New()
11
12 # create a mesh on a box
13 box = geom_builder.MakeBoxDXDYDZ( 10,10,10, theName="Box" )
14 mesh = smesh_builder.Mesh(box,"Mesh")
15 mesh.AutomaticHexahedralization()
16
17 # create groups of faces of each side of the box
18 groups = mesh.FaceGroupsSeparatedByEdges( 89 )