7 box = geompy.MakeBoxDXDYDZ(10., 10., 10.)
8 geompy.addToStudy(box, "Box")
10 # create a hexahedral mesh on the box
11 hexa = smesh.Mesh(box, "Box : hexahedrical mesh")
13 # create a Regular 1D algorithm for edges
14 algo1D = hexa.Segment()
16 # optionally reverse node distribution on certain edges
17 allEdges = geompy.SubShapeAllSortedIDs( box, geompy.ShapeType["EDGE"])
18 reversedEdges = [ allEdges[0], allEdges[4] ]
20 # define "Arithmetic1D" hypothesis to cut all edges in several segments with increasing arithmetic length
21 algo1D.Arithmetic1D(1, 4, reversedEdges)
23 # create a quadrangle 2D algorithm for faces
26 # create a hexahedron 3D algorithm for solids