Skip to content

WGBmushi/point_in_polygon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

point_in_polygon

This is a lightweight algorithm for quickly detecting whether a point is inside a polygon, primarily based on 'bounding box filtering' and the 'ray-casting method'.

Build and Run

mkdir build && cd build
cmake ..
make
./demo

Visualization

python3 ../src/plot_points.py

Result

point-in-polygon test result

Case 1 finished in 0.273792 ms 
Case 2 finished in 0.267125 ms 

About

Fast and Robust Point-in-Polyhedron Inclusion Detection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published