6 from salome.geom import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
10 from salome.smesh import smeshBuilder
11 smesh = smeshBuilder.New(salome.myStudy)
14 px = geompy.MakeVertex(100., 0. , 0. )
15 py = geompy.MakeVertex(0. , 100., 0. )
16 pz = geompy.MakeVertex(0. , 0. , 100.)
18 vxy = geompy.MakeVector(px, py)
19 arc = geompy.MakeArc(py, pz, px)
20 wire = geompy.MakeWire([vxy, arc])
23 face = geompy.MakeFace(wire, isPlanarFace)
25 # add the face in the study
26 id_face = geompy.addToStudy(face, "Face to be meshed")
29 tria_mesh = smesh.Mesh(face, "Face : triangulation")
32 algo = tria_mesh.Segment()
33 algo.NumberOfSegments(20)
37 # assign triangulation algorithm
38 algo = tria_mesh.Triangle()
40 # apply "Max Element Area" hypothesis to each triangle
41 algo.MaxElementArea(100)