ArcSegment.
rasterize
Create an array of points that describe the segments contour.
The effective raster width may vary from the specified one, since the algorithm enforces constant distances between two raster points.
raster_width – The desired distance between two raster points
Array of contour points
numpy.ndarray