Three-dimensional detection of an interior space of a body is performed by an endoscope in which a projection device projects a color pattern onto a region of the interior space and a detecting device detects an image of the color pattern projected onto the region. The projection and detection devices are positioned at least in part in a distal end region of an elongate endoscope extent. The distal end region can be angled up to 180° in relation to the original elongate endoscope extent. Active triangulation can be used in evaluating 3D images of the region to simply and effectively enlarge the 3D images. Such endoscopes can be used particularly advantageously in minimally invasive surgery or in industrial endoscopy.