Measurement method of optical properties by use of a rangefinder