A method for exact calculation of the discrepancy of low-dimensional finite point sets I