A measuring unit for measuring spatial points along edges and/or corners between adjacent surfaces of a structure within the scope of building and/or extending buildings, comprising • a top part, mounted on a base such that it is rotatable about a rotational axis, • a sighting unit which is mounted on the top part such that it is pivotable about a pivot axis and equipped with a laser source designed to emit a laser beam, an imaging detector and an alignment-display functionality for specifying an alignment of the sighting unit on a spatial point as sighting point, and • an evaluation and control unit, wherein • a first and a second rotational drive render it possible to drive and align the top part or the sighting unit, • a spatial alignment of the sighting unit in relation to the base can be detected by two goniometers, and • the evaluation and control unit is connected to the laser source, the distance-determination detector and the goniometers in order to associate a detected distance with a corresponding alignment and hence determine coordinates for spatial points, and it is also connected to the imaging detector, characterized in that the measuring unit for measuring edges and/or corners between adjacent surfaces of any form of the structure has an edge-tracking functionality, which runs at least partly automatically after triggering and within the scope of which, after an at least coarse alignment of the sighting unit with the alignment-display functionality to a known or user-defined first corner or with a first edge point between adjacent surfaces of the structure and recording an image of this first corner or this first edge point with the surroundings thereof, • edge lines (3a, 3b, 3c, 3d, 3e, 3f) are identified by determining edges by image processing, • there is a query relating to which of the identified edge lines (3a, 3b, 3c) should be continued to be tracked from the first corner or in which direction the identified edge line should be continued to be tracked from the first edge point, • after obtaining a corresponding user input, the user-defined edge line (3a, 3b, 3c) is automatically tracked by the sighting unit, at least until a further corner, wherein spatial points situated along the user-defined edge line (3a, 3b, 3c) are measured. • a top part, mounted on a base such that it is rotatable about a rotational axis, • a sighting unit which is mounted on the top part such that it is pivotable about a pivot axis and equipped with a laser source designed to emit a laser beam, an imaging detector and an alignment-display functionality for specifying an alignment of the sighting unit on a spatial point as sighting point, and • an evaluation and control unit, wherein • a first and a second rotational drive render it possible to drive and align the top part or the sighting unit, • a spatial alignment of the sighting unit in relation to the base can be detected by two goniometers, and • the evaluation and control unit is connected to the laser source, the distance-determination detector and the goniometers in order to associate a detected distance with a corresponding alignment and hence determine coordinates for spatial points, and it is also connected to the imaging detector, characterized in that the measuring unit for measuring edges and/or corners between adjacent surfaces of any form of the structure has an edge-tracking functionality, which runs at least partly automatically after triggering and within the scope of which, after an at least coarse alignment of the sighting unit with the alignment-display functionality to a known or user-defined first corner or with a first edge point between adjacent surfaces of the structure and recording an image of this first corner or this first edge point with the surroundings thereof, • edge lines (3a, 3b, 3c, 3d, 3e, 3f) are identified by determining edges by image processing, • there is a query relating to which of the identified edge lines (3a, 3b, 3c) should be continued to be tracked from the first corner or in which direction the identified edge line should be continued to be tracked from the first edge point, • after obtaining a corresponding user input, the user-defined edge line (3a, 3b, 3c) is automatically tracked by the sighting unit, at least until a further corner, wherein spatial points situated along the user-defined edge line (3a, 3b, 3c) are measured.