pyrobopath.process.utilities.create_dependency_graph_by_z#
- pyrobopath.process.utilities.create_dependency_graph_by_z(toolpath: Toolpath) DependencyGraph[source]#
Create a layered dependency graph from a toolpath based on contour Z-heights.
Constructs a DependencyGraph where each contour is a node, and dependencies are defined by the relative Z-height of the contours. Specifically, a contour is dependent on all contours in the layer directly below it.
- Parameters:
toolpath (Toolpath) – A toolpath composed of multiple contours to be layered and ordered.
- Returns:
A dependency graph with inter-layer dependencies based on Z-height.
- Return type: