Salome HOME
23619: EDF 18055 - Detection of sharp edges
[modules/smesh.git] / doc / salome / examples / grouping_elements_ex09.py
1 # Creating groups of faces separated by sharp edges
2
3 import salome
4 salome.salome_init()
5 from salome.geom import geomBuilder
6 from salome.smesh import smeshBuilder
7 geompy = geomBuilder.New()
8 smesh =  smeshBuilder.New()
9
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()
14
15 # create groups of faces of each side of the box
16 groups = mesh.FaceGroupsSeparatedByEdges( 89 )