Source code: draw pv

Built with Processing

    
    Here are the keys:

l = to draw left wall (must be done first);
r = to draw right wall
hold b + mouse click = place ball
s = save points
d = load points
a = switch from 2d and 3d
space = reset 
p = snap picture