Coder Social home page Coder Social logo

mehrta / monotone-polygon-decomposition Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 35.04 MB

An Algorithm for Monotone Decomposition of Polygons in 2D Space

C# 48.10% C++ 51.40% C 0.50%
polygon decomposition polygon-decomposition monotone-polygons monotone-decomposition algorithm greedy-algorithm csharp dotnet

monotone-polygon-decomposition's Introduction

monotone-polygon-decomposition

An Algorithm for Monotone Decomposition of Polygons in 2D Space

Partitioning a polygon into a set of smaller polygons is called polygon decomposition. There are several methods to decompose a polygon: convex decomposition, monotone decomposition and trapezoidal decomposition, which all of them commonly used in computational geometry. In some cases, it is necessary or desirable to generate minimum number of sub polygons. In this desertation, we propose a greedy algorithm to monotone decomposition of polygons with holes. This algorithm doesn't use Steiner points. The main goal of developing this algorithm is achieving a near minimum decomposition at an acceptable time. Since minimum decomposition of a polygon with holes when Steiner points are not allowed, is a NP-Hard problem, near optimum solutions are the only available practical options for large instances of the problem. In developing this algorithm, two issues have been considered. First subject is about minimality of decomposition. However there is no guarantee about getting the minimum deal, the results of practical implementations demonstrate the effectiveness of this approach. The second issue which is considered in designing of this algorithm is the run time matter. A part of this algorithm is controlled by using a parameter which called ‘Maximum Search Depth’. As the value of this parameter is smaller, the probability of finding near minimum results will be decreased, and in the same, the run time of the algorithm will be decreased. By assigning larger values to this parameter, we can produce better answers but the algorithm's run time will be increased too. By setting this parameter according to the application of this algorithm, we can switch and select between the minimality of analysis or run time performance, or create a balance between them.

monotone-polygon-decomposition's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

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.