Comments (3)
concave hull looks like it can be troublesome. It would be deterministic I think for a discrete coordinate grid but I couldn't guarantee it would work for arbitrary maps people might throw at the system:
https://towardsdatascience.com/the-concave-hull-c649795c0f0f
https://github.com/sebastianbeyer/concavehull
https://github.com/mapbox/concaveman
I think perhaps I stick with simple "inside-shape" tests for each 'void' point in the coordinate system
from boardgame_framework.
Hrmph...I remember, the reason I wanted to calculate concave shape was to determine the polygon for the 'inside-shape' test: https://www.geeksforgeeks.org/how-to-check-if-a-given-point-lies-inside-a-polygon/
I could simply do a convex hull around the seam adjacent edges. But I was hoping for this to be more generic :).
I could also do a blind flood/seed fill and just pass all the coordinates of the cells involved. Then I need a parameter/parameters giving the different seeds or simply a function/lambda that would "find" voids that need filling.
from boardgame_framework.
Ohhh...I like http://openaccess.thecvf.com/content_CVPRW_2019/papers/CEFRL/He_Scan-Flood_FillSCAFF_An_Efficient_Automatic_Precise_Region_Filling_Algorithm_for_CVPRW_2019_paper.pdf for a method. Perhaps I'll implement that with user provided lambda's for classification/masking.
from boardgame_framework.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boardgame_framework.