numgrid, a Python code which defines and numbers a subset of the nodes in a regular nxn grid of the [-1,+1]x[-1,+1] unit square.
The regions that can be defined include
The computer code and data files made available on this web page are distributed under the MIT license
numgrid is available in a MATLAB version and an Octave version and a Python version.