An intraoral confocal scanner for performing intraoral scans, comprising an illumination module; an optical system comprising a plurality of lenses, wherein the optical system comprises focusing optics configured to focus light from the illumination module onto a focal surface and to direct the light from the illumination module toward a three dimensional object to be imaged in an oral cavity, the focusing optics comprising at least one lens of the plurality of lenses; a translation mechanism configured to adjust a location of the at least one lens to displace the focal surface along an imaging axis defined by an optical path of the light from the illumination module, wherein adjustments to the location of the at least one lens cause a change in magnification of the focal surface; a detector configured to generate surface scan data by measuring light returning from the three dimensional object and directed back through the focusing optics; and a computing device configured to determine positions of a plurality of points of the three dimensional object based on the surface scan data; adjust the determined positions of one or more of the plurality of points using one or more compensation models to compensate for respective magnifications of the focal surface associated with respective locations of the at least one lens; and generate a three-dimensional virtual model of the three dimensional object imaged in the oral cavity using the adjusted positions.A method of scanning a 3D object and a computing device are also provided.