Digital and Discrete Geometry: Theory and Algorithms