digitizing geometric shapes