Method for Lossy Compression of Point Clouds with Pointwise Error Constraints