Measuring arrangements characterised by the use of optical means for measuring length, width or thickness {by measuring lateral position of a boundary of the object }