Fills a polygon with regularly spaced points.

poly_fill(point_set, step_size = 1)

Arguments

point_set

a polygon point set in array or matrix form, in which the first two columns contain x and y vertex coordinates.

step_size

a numeric indicating the spacing of the points

Value

A data frame containing coordinates for points within the polygon, including polygon vertices, inheriting all the other columns from the input polygon point set.