A simple formula for quad mesh singularities. (2017)