Rasterize edge onto integer grid.
Polyline.getEdges -> Polyline.edges