Open-source software for collision detection in external beam radiation therapy