polygon_grid_test, a FORTRAN90 code which calls polygon_grid(), which generates a grid of points over the interior of a polygon in 2D.
The computer code and data files described and made available on this web page are distributed under the MIT license
polygon_grid, a FORTRAN90 code which generates a grid of points over the interior of a polygon in 2D.
ELL is an L-shaped (non-convex!) polygon for which the program output doesn't look too bad, although the grid is degenerate.
QUAD is a quadrilateral polygon.
TRIANGLE is a triangular polygon.