-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating spherical meshes for get_grid_beam_directions #129
Comments
@pc494 yes I can try to handle it. Might need some input on proper unit testing along the way though. In regards to the remaining questions: (a) agree 1-3 are a must, 1 is already there as (b) yes, I would also opt for largest nearest neighbor distance in degrees. In the UV sphere this is on the equator, in the cube based meshes this is the angle from [001] to its nearest neighbor in the direction of the [111] corner. Will try to find a proper reference for sphere meshing |
Sounds good to me 👍 |
Having thought some more on this, I now feel even more strongly that only providing "spherical", "normalized-cube" and "spherified-cube" of the mesh methods is the best option at this point. |
It would be a shame to see good work go to waste, feel free to include all 4 (+1) methods in a PR and I'll have a think |
This is really good - thanks everyone involved! I'd vote for the more the merrier right now I think... |
closed by #130 |
Is your feature request related to a problem? Please describe.
get_grid_beam_directions
currently picks a mesh in a rather naive way. As described in [1] several "better" options exist. A fairly extensive discussion can be found in #128. Thanks are due to @din14970 for bringing this to my attention.Describe the solution you'd like
This remains slightly up for discussion. From a programming point of view, I think it's fairly obvious that we want
get_grid_beam_directions(crystal_system,resolution,equal="area")
to become
get_grid_beam_directions(crystal_system,resolution,mesh="mesh_type")
The questions that are then open are
(a) how many mesh types should we provide?
(b) how should be describe "resolution" for these mesh types
My inclination on (a) is that options 1-3 from the linked article would be enough, and adding an extra package for what at first glance seems a fairly marginal benefit feels wrong to me.
On (b) I think the resolution should probably the worst nearest neighbour distance on the grid, although this is a conservative number. Regardless, we should agree what it is, write it in the docstrings, and use it for all gridding types.
Also, a more formal citation to replace [1] would be good, but that's a bonus.
=====
@din14970 are you happy to be assigned this?
[1] https://medium.com/game-dev-daily/four-ways-to-create-a-mesh-for-a-sphere-d7956b825db4
The text was updated successfully, but these errors were encountered: