1 # Sew Conform Free Borders
6 # create two faces of the box
7 box1 = geompy.MakeBox(0., 0., -10., 20., 20., 15.)
8 facesList1 = geompy.SubShapeAll(box1, geompy.ShapeType["FACE"])
11 box2 = geompy.MakeBox(0., 5., 0., 20., 20., 15.)
12 facesList2 = geompy.SubShapeAll(box2, geompy.ShapeType["FACE"])
15 edgesList = geompy.SubShapeAll(face2, geompy.ShapeType["EDGE"])
18 aComp = geompy.MakeCompound([face1, face2])
19 geompy.addToStudy(aComp, "Two faces")
21 # create a mesh on two faces
22 mesh = smesh.Mesh(aComp, "Two faces : quadrangle mesh")
24 algo1D = mesh.Segment()
25 algo1D.NumberOfSegments(9)
26 algo2D = mesh.Quadrangle()
28 algo_local = mesh.Segment(edge1)
29 algo_local.Arithmetic1D(1, 4)
30 algo_local.Propagation()
34 # sew conform free borders
35 # FirstNodeID1, SecondNodeID1, LastNodeID1, FirstNodeID2, SecondNodeID2
36 mesh.SewConformFreeBorders(5, 45, 6, 3, 24)