Learning Based Toolpath Planner on Diverse Graphs for 3D Printing
Yuming Huang, Yuhu Guo, Renbo Su, Xingjian Han, Junhao Ding, Tianyu Zhang, Tao Liu, Weiming Wang, Guoxin Fang, Xu Song, Emily Whiting, Charlie C. L. Wang
TL;DR
This work tackles large-scale, diverse-graph toolpath planning for 3D printing by introducing an on-the-fly Deep Q-Network planner operating on Local Search Graphs (LSGs). By encoding moving states with a pattern-aware representation and incorporating short-term memory, the method enables rapid decision-making and reuses learned priors across similar graph configurations to accelerate learning. The approach is demonstrated across three printing modalities—wire-frame, continuous carbon fiber (CCF CFRTP), and LPBF metal printing—with substantial gains in efficiency and print quality: up to 4.2k struts printed, a 93.3% reduction in sharp turns, and a 24.9% reduction in thermal distortion. These results validate a general, scalable framework for optimized toolpath planning on diverse, large graphs with domain-specific reward formulations and acceleration strategies that bridge learning with practical manufacturing outcomes.
Abstract
This paper presents a learning based planner for computing optimized 3D printing toolpaths on prescribed graphs, the challenges of which include the varying graph structures on different models and the large scale of nodes & edges on a graph. We adopt an on-the-fly strategy to tackle these challenges, formulating the planner as a Deep Q-Network (DQN) based optimizer to decide the next `best' node to visit. We construct the state spaces by the Local Search Graph (LSG) centered at different nodes on a graph, which is encoded by a carefully designed algorithm so that LSGs in similar configurations can be identified to re-use the earlier learned DQN priors for accelerating the computation of toolpath planning. Our method can cover different 3D printing applications by defining their corresponding reward functions. Toolpath planning problems in wire-frame printing, continuous fiber printing, and metallic printing are selected to demonstrate its generality. The performance of our planner has been verified by testing the resultant toolpaths in physical experiments. By using our planner, wire-frame models with up to 4.2k struts can be successfully printed, up to 93.3% of sharp turns on continuous fiber toolpaths can be avoided, and the thermal distortion in metallic printing can be reduced by 24.9%.
