mathematical-lattices

Get all lattice points lying inside a Shapely polygon

Get all lattice points lying inside a Shapely polygon Question: I need to find all the lattice points inside and on a polygon. Input: from shapely.geometry import Polygon, mapping sh_polygon = Polygon(((0,0), (2,0), (2,2), (0,2))) Output: (0, 0), (1, 0), (2, 0), (0, 1), (1, 1), (2, 1), (0, 2), (1, 2), (2, 2) Please …

Total answers: 3