An objective algorithm that leverages 3D data and machine learning to reliably compare and classify forensic toolmarks, enhancing the reliability of this forensic technique.