3D physics-based brush model for painting