Skip to content

4nnta/trapezoidal-map

Repository files navigation

This github repository contains an implementation of the trapezoidal map.
To run the code, clone this repository or download the .zip of the repository to your computer.
Run the driver using ./driver n (with n being the number of random segments to spawn). For now I recommend keeping the number of segments to be less than 1000 (because the spawning algorithm is not really fast).
The program will continuously prompt for a query point, input them as x y. The output is the top and bottom segment of the trapezoid that contains the point.
If a segment appears in the result for a query, it is the segment of the bounding box.
Ctrl C to exit the program.
I finished the main part of the trapezoidal map and all the input code, but my code has a bug in the merging trapezoids part that I couldn't manage to fix in time. For some small test cases it should work pretty well.

About

Implementation of trapezoidal map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages