Source: https://www.epfl.ch/labs/lcso/wp-content/uploads/2021/06/ExercicesCGAII-2021.pdf