From 041b1df1aaec1d547e4c2854687c97752ec16b43 Mon Sep 17 00:00:00 2001 From: LyceanEM <60020395+LyceanEM@users.noreply.github.com> Date: Tue, 25 Jun 2024 10:26:43 +0100 Subject: [PATCH] Correcting the gridedReflectorPoints function to add the vertex cell type to the output meshio object. --- lyceanem/geometry/targets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lyceanem/geometry/targets.py b/lyceanem/geometry/targets.py index b933cef..ccd0df8 100755 --- a/lyceanem/geometry/targets.py +++ b/lyceanem/geometry/targets.py @@ -562,6 +562,8 @@ def gridedReflectorPoints( mesh_vertices = source_coords mesh_normals = source_normals - mesh_points = meshio.Mesh(points=mesh_vertices, cells=[], point_data={"Normals": mesh_normals}) + mesh_points = meshio.Mesh(points=mesh_vertices, + cells=[("vertex", np.array([[i, ] for i in range(len(mesh_vertices))]))], + point_data={"Normals": mesh_normals}) return mesh_points