The use of optical scanning for analysis of casting shape