Fix the calculation of end points for the 3D view
Fix the calculation of end points for the 3D view

fzadow/CATMAID,fzadow/CATMAID,fzadow/CATMAID,fzadow/CATMAID,htem/CATMAID,htem/CATMAID,htem/CATMAID,htem/CATMAID