weldx.geometry.LineSegment.rasterize#

LineSegment.rasterize(raster_width)#

Get an array of discrete raster points of the segment.

Parameters:

raster_width (Quantity) – The desired distance between two raster points. The actual distance will be the closest possible value to the desired one that guarantees an equal distance between all raster points.

Returns:

Array of raster points

Return type:

pint.Quantity