Skip to content

Find the maximally inscribed polygon for another given polygon.

License

Notifications You must be signed in to change notification settings

mrsonandrade/maxpol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maxpol

Find the maximally inscribed polygon for another given polygon.

An optimization procedure is implemented, where:

  • To optimize the largest optimized polygon inside our given polygon, the package pymoode is used, which is a Python framework for Differential Evolution.
    • Please, note that this implementation has only the trapezoid polygon as an optimized polygon option. However, other polygons are easy to implement by following the same structure.
  • To check if the given polygon contains the optimized polygon (and compute their areas) the package shapely is used, which is a Python package for set-theoretic analysis and manipulation of planar features using functions from the well known and widely deployed GEOS library.
  • The solution also depends on the libraries: csv, numpy, and matplotlib.

For details, please, see the figure result.png and check the code maxpol.py.

About

Find the maximally inscribed polygon for another given polygon.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages