Method for measuring the shape of at least one section of an object (8), inparticular a semi-transparent object suchas at least one section of a tooth, using a light source (1) for generatinglight with preferably a broadband spectrum in a device (3)for generating a multifocal illumination pattern, a lens (6) with a largechromatic aberration for imaging foci of the illuminationpattern onto the object, and a detection device (12) for determining thewavelength spectra of the foci confocally imaged onto theobject via the lens, wherein a spectral peak position of each focus isdetermined from the respective wavelength spectrum, fromwhich position the extent of the object in the direction of the imaging beam(Z coordinate) is calculated, wherein the multifocalillumination pattern is formed via optical waveguides (5) arranged between thelight source (1) and the lens (6) with a largechromatic aberration, wherein the lens (6) images object-side ends of theoptical waveguides onto the object and images light remittedby the object onto the object-side ends of the optical waveguides, and whereinlight guided and remitted by the optical waveguidesis guided to the detection device (12). In order to make it possible to carryout highly accurate measurements with structurallysimple measures, wherein the intention is toenable both the best possible distribution of measuring points on the sampleand optimum spectrum distribution in the detectiondevice, provision is made for the object-side illumination pattern to beformed via the optical waveguides (5) in such a mannerthat an object-side distribution of measuring points is independent of anillumination-side and detection-side microlens or pinholedistribution.