fibomat.raster_styles.two_d.linebyline module¶
Provide LineByLine raster style.
- class fibomat.raster_styles.two_d.linebyline.LineByLine(line_pitch: pint.quantity.Quantity, scan_sequence: fibomat.raster_styles.scansequence.ScanSequence, alpha: float, invert: bool, line_style: fibomat.raster_styles.rasterstyle.RasterStyle)[source]¶
Bases:
fibomat.raster_styles.rasterstyle.RasterStyle- __init__(line_pitch: pint.quantity.Quantity, scan_sequence: fibomat.raster_styles.scansequence.ScanSequence, alpha: float, invert: bool, line_style: fibomat.raster_styles.rasterstyle.RasterStyle)[source]¶
- property dimension: int¶
Returns the required dimensionality a shape must have to apply this raster style Returns:
- property line_pitch¶
- property scan_sequence¶
- property alpha¶
- property invert¶
- property line_style¶
- 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