Discregrid icon indicating copy to clipboard operation
Discregrid copied to clipboard

Add support for generating 2D discrete fields

Open Gornhoth opened this issue 2 years ago • 4 comments

The 2D generation works almost exactly like the 3D one. The signatures were matched as closely as possible and programs are included similar to the 3D solution (GenerateSDF2D, DiscreteFieldToBitmap2D). Note that for the examples Clipper2 library is used to convert a triangle mesh to a polygon before discretization. However, this dependency is optional and the solution (without the two programs) works without it as well, if the user defines their own polygon structure consistent of vertices and edges to discretize. If anything in my code is not to up to the standards of the maintainers of Discregrid, please tell me how I can fix things so this pull request can be merged.

Gornhoth avatar Jul 21 '23 18:07 Gornhoth

Hello,

thank you for your contribution, however, at the moment I have no time to revise the changes. I will leave it open for now.

JoseAntFer avatar Jul 24 '23 08:07 JoseAntFer

Hello! Thanks for the information, please take your time to review the changes, there is no need to hurry if there is little time at the moment. For my personal interest, may I ask in what time frame it is likely my pull request can be reviewed?

Gornhoth avatar Jul 24 '23 17:07 Gornhoth

Sadly, I am not able to give you a time frame as we have a couple of packed months coming. Additionally, we have to discuss internally if we actually want to add support for 2D fields in the main repo of Discregrid as we do not work with 2D and it just becomes more code to maintain for us.

JoseAntFer avatar Jul 26 '23 07:07 JoseAntFer

Understandable, thanks for the information and good luck with your upcoming projects!

Gornhoth avatar Jul 26 '23 08:07 Gornhoth