\r
\r
r = 1.\r
-NumberOfSegments = 200\r
+NumberOfSegments = 10\r
\r
points = [geompy.MakeVertex(r * cos(i * pi / 3), r * sin(i * pi / 3), 0) for i in range(7)]\r
edges = [geompy.MakeEdge(points[i], points[i + 1]) for i in range(6)]\r
geompy.addToStudy(hexa, "Hexagon")\r
g = create_group_from("Hexagon_boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)])\r
\r
-mesh = smesh.Mesh(hexa, "Hexagon_mesh"+str(NumberOfSegments))\r
+mesh = smesh.Mesh(hexa, "HexagonWith"+str(NumberOfSegments)+"Triangles")\r
msurf = mesh.Triangle(algo=smeshBuilder.NETGEN_1D2D)\r
NETGEN_2D_Simple_Parameters_1 = msurf.Parameters(smeshBuilder.SIMPLE)\r
NETGEN_2D_Simple_Parameters_1.SetNumberOfSegments( NumberOfSegments )\r