Closed generein closed 5 months ago
This is likely because the meshio file used for the sink coordinates does not have the point data field "Normals". This could be addressed by adding this point data field. A compute_normals
function has been added to the codebase in geometry_functions which will calculate the cell and point normals for a mesh. This can be used now by installing directly from github, and will be included in the next release.
The docstring still contains references to open3d classes, despite it using meshio.Mesh formats, which does not help with resolving the issue below.
I have a
calculate_scattering
call as follows:This results in an error in the frequency_domain.py file on line 522 in
calculate_scattering
:Is this an error in the data type fed to
sink_coords
or does it need to besink.coords.cell_data["Normals"]
as elsewhere in that file?