BasePrintOrganizer

class compas_slicer.print_organization.BasePrintOrganizer(slicer)[source]

Bases: object

Base class for organizing the printing process. This class is meant to be extended for the implementation of the various print organizers. Do not use this class directly in your python code. Instead use PlanarPrintOrganizer or InterpolationPrintOrganizer.

Attributes

slicer (compas_slicer.slicers.PlanarSlicer) – An instance of the compas_slicer.slicers.PlanarSlicer.

Attributes

number_of_layers

Number of layers in the PrintOrganizer.

number_of_paths

number_of_printpoints

Total number of points in the PrintOrganizer.

total_length_of_paths

Returns the total length of all paths.

total_print_time

If the print speed is defined, it returns the total time of the print, else returns None

Inherited Attributes

Methods

__init__(slicer)

create_printpoints()

To be implemented by the inheriting classes

get_printpoint_neighboring_items(layer_key, ...)

layer_key: str

get_printpoints_attribute(attr_name)

Returns a list of printpoint attributes that have key=attr_name.

number_of_paths_on_layer(layer_index)

int: Number of paths within a Layer of the PrintOrganizer.

output_gcode(parameters)

Gets a gcode text file using the function that creates gcode :Parameters: parameters (dict with gcode parameters)

output_printpoints_dict()

Creates a flattened PrintPoints as a dictionary.

printout_info()

Prints out information from the PrintOrganizer

printpoints_indices_iterator()

Iterate over the printpoints of the print organizer.

printpoints_iterator()

Iterate over the printpoints of the print organizer.

remove_duplicate_points_in_path(layer_key, ...)

Remove subsequent points that are within a certain threshold.

visualize_on_viewer(viewer, ...)

Visualize printpoints on the compas_viewer.

Inherited Methods