7 box = MakeBoxDXDYDZ(10., 10., 10.)
10 # get one edge of the box to put local hypothesis on
11 p5 = MakeVertex(5., 0., 0.)
12 EdgeX = GetEdgeNearPoint(box, p5)
13 addToStudyInFather(box, EdgeX, "Edge [0,0,0 - 10,0,0]")
15 # create a hexahedral mesh on the box
16 hexa = smesh.Mesh(box, "Box : hexahedrical mesh")
18 # set global algorithms and hypotheses
19 algo1D = hexa.Segment()
22 algo1D.NumberOfSegments(4)
24 # create a sub-mesh with local 1D hypothesis and propagation
25 algo_local = hexa.Segment(EdgeX)
27 # define "Arithmetic1D" hypothesis to cut an edge in several segments with increasing length
28 algo_local.Arithmetic1D(1, 4)
30 # define "Propagation" hypothesis that propagates all other 1D hypotheses
31 # from all edges on the opposite side of a face in case of quadrangular faces
32 algo_local.Propagation()