Skip to content

Commit

Permalink
Correcting the gridedReflectorPoints function to add the vertex cell …
Browse files Browse the repository at this point in the history
…type to the output meshio object.
  • Loading branch information
LyceanEM committed Jun 25, 2024
1 parent 1b17164 commit 041b1df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lyceanem/geometry/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 041b1df

Please sign in to comment.