InterpolationPrintOrganizer

class compas_slicer.print_organization.InterpolationPrintOrganizer(slicer, parameters, DATA_PATH)[source]

Bases: compas_slicer.print_organization.base_print_organizer.BasePrintOrganizer

Organizing the printing process for the realization of non-planar contours.

Attributes

Attributes

Inherited 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

Methods

__init__(slicer, parameters, DATA_PATH)

Initialize self.

check_printpoints_feasibility()

Checks if the get_distance to the closest support of every layer height is within the admissible limits.

create_base_boundaries()

Creates one BaseBoundary per vertical_layer.

create_printpoints()

Create the print points of the fabrication process Based on the directed graph, select one topological order.

create_vertical_connectivity()

A VerticalConnectivity finds vertical relation between paths.

create_vertical_layers_dict()

Initializes vertical_layers_print_data dictionary with empty vertical_layers_print_data.

topological_sorting()

When the print consists of various paths, this function initializes a class that creates a directed graph with all these parts, with the connectivity of each part reflecting which other parts it lies on, and which other parts lie on it.

Inherited Methods

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

remove_duplicate_points_in_path(layer_key, …)

Remove subsequent points that are within a certain tolerance.

visualize_on_viewer(viewer, …)

Visualize printpoints on the compas_viewer.