Skip to content

ficapy/ler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Largest Empty Rectangle in Polygons

Compute the largest empty rectangle inside general polygons with holes.

Motivation and Details

Automatically placing labels on maps is a problem relevant geographic information systems. In this case, the shape of the label and, thus, the aspect ratio is known.

This repository contains implementations of two algorithms for finding (approximate) largest rectangles inside general polygons with holes:

  • ap: axis-aligned rectangles
  • rr: arbitrary rotated rectangles

test large

test medium

test small

Compiling

We switched to CMake. In the project folder, enter the following to obtain the previously mentioned binaries:

mkdir build
cmake ../
make

TODO

  • Make library out of project and support common GIS format
  • Use CGAL for geometric primitives

About

Approximate Largest Empty Rectangles inside Polygons

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • C++ 97.7%
  • CMake 1.5%
  • Other 0.8%