mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 01:58:35 +05:00
17 lines
458 B
Python
17 lines
458 B
Python
|
# Creating groups of faces separated by sharp edges
|
||
|
|
||
|
import salome
|
||
|
salome.salome_init()
|
||
|
from salome.geom import geomBuilder
|
||
|
from salome.smesh import smeshBuilder
|
||
|
geompy = geomBuilder.New()
|
||
|
smesh = smeshBuilder.New()
|
||
|
|
||
|
# create a mesh on a box
|
||
|
box = geompy.MakeBoxDXDYDZ( 10,10,10, theName="Box" )
|
||
|
mesh = smesh.Mesh(box,"Mesh")
|
||
|
mesh.AutomaticHexahedralization()
|
||
|
|
||
|
# create groups of faces of each side of the box
|
||
|
groups = mesh.FaceGroupsSeparatedByEdges( 89 )
|