I found the handling of the marker ids as Integers to be quite confusing. Especially in the long switch/case statement in calculatePenTip() , the meaning of the switch-variable is hard to grasp.
I propose to use an enum to map the marker ids to the respective faces of the marker cube.
I found the handling of the marker ids as Integers to be quite confusing. Especially in the long switch/case statement in calculatePenTip() , the meaning of the switch-variable is hard to grasp.
I propose to use an enum to map the marker ids to the respective faces of the marker cube.