fibomat.raster_styles.zero_d.singlespot module

class fibomat.raster_styles.zero_d.singlespot.SingleSpot[source]

Bases: fibomat.raster_styles.rasterstyle.RasterStyle

__init__()[source]
property dimension: int

Returns the required dimensionality a shape must have to apply this raster style Returns:

rasterize(dim_shape: fibomat.shapes.dim_shape.DimShape, mill: fibomat.mill.mill.Mill, out_length_unit: pint.unit.Unit, out_time_unit: pint.unit.Unit) fibomat.rasterizedpattern.RasterizedPattern[source]

Rasterize the given shape.

The number of repeats and dwell_time defined in the mill object must be applied! The points and dwell times in the returned RasterizedPoints object must be scaled according to out_length_unit and out_time_unit.

Args:

dim_shape (DimObjLike[Shape, LengthUnit]): shpae with length unit to be rasterized. mill (Mill): mill out_length_unit (LengthUnit): length unit of returned RasterizedPoints out_time_unit (TimeUnit): time unit of returned RasterizedPoints

Returns:

RasterizedPoints

clone() fibomat.raster_styles.rasterstyle.RasterStyle

Deep copy the raster style.

Returns:

RasterStyle