1 # Creating groups of faces separated by sharp edges
4 salome.salome_init_without_session()
6 from salome.geom import geomBuilder
7 from salome.smesh import smeshBuilder
9 geom_builder = geomBuilder.New()
10 smesh_builder = smeshBuilder.New()
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()
17 # create groups of faces of each side of the box
18 groups = mesh.FaceGroupsSeparatedByEdges( 89 )