Learning-based toolpath planning for bed-based additive manufacturing | Synapse