Git Product home page Git Product logo

Comments (3)

RabidCicada avatar RabidCicada commented on July 18, 2024

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.

RabidCicada avatar RabidCicada commented on July 18, 2024

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.

RabidCicada avatar RabidCicada commented on July 18, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.