1 # Creating groups of faces separated by sharp edges
4 salome.salome_init_without_session()
5 from salome.geom import geomBuilder
6 from salome.smesh import smeshBuilder
7 geompy = geomBuilder.New()
8 smesh = smeshBuilder.New()
10 # create a mesh on a box
11 box = geompy.MakeBoxDXDYDZ( 10,10,10, theName="Box" )
12 mesh = smesh.Mesh(box,"Mesh")
13 mesh.AutomaticHexahedralization()
15 # create groups of faces of each side of the box
16 groups = mesh.FaceGroupsSeparatedByEdges( 89 )