1 # Quadrangle Parameters example 1 (meshing a face with 3 edges)
6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
10 from salome.smesh import smeshBuilder
11 smesh = smeshBuilder.New(salome.myStudy)
13 # Get 1/4 part from the disk face.
14 Box_1 = geompy.MakeBoxDXDYDZ(100, 100, 100)
15 Disk_1 = geompy.MakeDiskR(100, 1)
16 Common_1 = geompy.MakeCommon(Disk_1, Box_1)
17 geompy.addToStudy( Disk_1, "Disk_1" )
18 geompy.addToStudy( Box_1, "Box_1" )
19 geompy.addToStudy( Common_1, "Common_1" )
21 # Set the Geometry for meshing
22 Mesh_1 = smesh.Mesh(Common_1)
25 # Define 1D hypothesis and compute the mesh
26 Regular_1D = Mesh_1.Segment()
27 Nb_Segments_1 = Regular_1D.NumberOfSegments(10)
28 Nb_Segments_1.SetDistrType( 0 )
30 # Create Quadrangle parameters and define the Base Vertex.
31 Quadrangle_2D = Mesh_1.Quadrangle().TriangleVertex( 8 )