Slicer

Slicer

__init__

__init__(
    device,
    settings: dict,
    filename: str,
    minimize_file: bool = True,
    zip_output: bool = True,
)

Initialize the Slicer with a device and settings.

Parameters:

  • device: Device to be sliced.
  • settings: Slicer settings dictionary.
  • filename: Name of the output file.
  • zip_output: Whether to output as a zip file.

make_print_file

make_print_file(save_temp_files=False) -> bool

Generate a print file based on the provided device and settings. This function will create a temporary directory, slice the device's components, generate secondary and membrane images, create a JSON file with the print data, and create a print job zip or directory.

Parameters:

  • save_temp_files (bool): If True, the temporary files will be saved for debugging purposes.