Device for the three-dimensional detecting of a surface structure (11; 11'; 11"; 11'''), in particular for detecting teeth, a) with a chromatic-confocal optics (40, 42, 44) comprising an optical axis, and b) with a light source (16; 16a; 16b; 16c) which has a raster of individual light sources spaced laterally to the optical axis, c) wherein the optics (40, 42, 44) images the individual light sources onto the surface structure (11; 11'; 11"; 11''') such that a raster of measurement points, which are laterally spaced apart from one another, is generated there, d) wherein an image recording unit (50; 50a; 50b) is optically arranged with respect to the individual light sources in such a way to detect the raster of measurement points wherein e) a control and evaluation device is provided, which is configured - to control the light source (16; 16a; 16b; 16c) such that the individual light sources emit light of different spectral composition in temporal sequence, and - to detect the raster of measurement points correlated with the temporal sequence of the light emitted by the individual light sources with the aid of the image recording unit (50; 50a; 50b), characterized in that the light source (16b, 16c) comprises at least two broadband, individually controllable light sources (21.m) before a raster element (30, 32) for generating the individual light sources, which are configured so small that the image of each individual light source is imaged practically completely on the same measurement point, and whose wavelength spectrum in each case has a sinusoidal or triangular intensity distribution which at least partially overlap, so that by a periodic phase-offset sinusoidal or triangular control of the controllable light sources (21.m) a periodic spectral shift of the light of the individual light sources occurs by superimposition of the light of the broadband, individually controllable light sources (21.m). a) with a chromatic-confocal optics (40, 42, 44) comprising an optical axis, and b) with a light source (16; 16a; 16b; 16c) which has a raster of individual light sources spaced laterally to the optical axis, c) wherein the optics (40, 42, 44) images the individual light sources onto the surface structure (11; 11'; 11"; 11''') such that a raster of measurement points, which are laterally spaced apart from one another, is generated there, d) wherein an image recording unit (50; 50a; 50b) is optically arranged with respect to the individual light sources in such a way to detect the raster of measurement points wherein e) a control and evaluation device is provided, which is configured - to control the light source (16; 16a; 16b; 16c) such that the individual light sources emit light of different spectral composition in temporal sequence, and - to detect the raster of measurement points correlated with the temporal sequence of the light emitted by the individual light sources with the aid of the image recording unit (50; 50a; 50b), - to control the light source (16; 16a; 16b; 16c) such that the individual light sources emit light of different spectral composition in temporal sequence, and - to detect the raster of measurement points correlated with the temporal sequence of the light emitted by the individual light sources with the aid of the image recording unit (50; 50a; 50b),