weldx.geometry.Shape.rasterize#

Shape.rasterize(raster_width)#

Create an array of points that describe the shapes contour.

The effective raster width may vary from the specified one, since the algorithm enforces constant distances between two raster points inside of each segment.

Parameters

raster_width (Quantity) – The desired distance between two raster points

Returns

Array of contour points (2d)

Return type

numpy.ndarray