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")
19 algo1D = hexa.Segment()
23 # define "NumberOfSegments" hypothesis to cut an edge in a fixed number of segments
24 algo1D.NumberOfSegments(4)
26 # create a local hypothesis
27 algo_local = hexa.Segment(EdgeX)
29 # define "StartEndLength" hypothesis to cut an edge in several segments with increasing geometric length
30 algo_local.StartEndLength(1, 6)
32 # define "Propagation" hypothesis that propagates all other hypothesis
33 # on all edges on the opposite side in case of quadrangular faces
34 algo_local.Propagation()