From bb87abd6f2b7ae7e446a1ef3e6d33575cb9d87ee Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 13 Dec 2020 10:56:54 +0100 Subject: [PATCH] Renamed script that generates the mesh of an hexagonal cavity --- .../2DHexagonWithTriangles/{hexa.py => HexagonMesh.py} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename CDMATH/tests/ressources/2DHexagonWithTriangles/{hexa.py => HexagonMesh.py} (82%) diff --git a/CDMATH/tests/ressources/2DHexagonWithTriangles/hexa.py b/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py similarity index 82% rename from CDMATH/tests/ressources/2DHexagonWithTriangles/hexa.py rename to CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py index 133d676..70fc6e7 100644 --- a/CDMATH/tests/ressources/2DHexagonWithTriangles/hexa.py +++ b/CDMATH/tests/ressources/2DHexagonWithTriangles/HexagonMesh.py @@ -27,10 +27,10 @@ points = [geompy.MakeVertex(r * cos(i * pi / 3), r * sin(i * pi / 3), 0) for i i edges = [geompy.MakeEdge(points[i], points[i + 1]) for i in range(6)] wire = geompy.MakeWire(edges) hexa = geompy.MakeFace(wire, True) -geompy.addToStudy(hexa, "hexa") -g = create_group_from("boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)]) +geompy.addToStudy(hexa, "Hexagon") +g = create_group_from("Hexagon_boundaries", hexa, [geompy.GetInPlace(hexa, wire, 1)]) -mesh = smesh.Mesh(hexa, "mesh") +mesh = smesh.Mesh(hexa, "Hexagon_mesh"+str(NumberOfSegments)) msurf = mesh.Triangle(algo=smeshBuilder.NETGEN_1D2D) NETGEN_2D_Simple_Parameters_1 = msurf.Parameters(smeshBuilder.SIMPLE) NETGEN_2D_Simple_Parameters_1.SetNumberOfSegments( NumberOfSegments ) -- 2.39.2