Metric for Automated Detection and Identification of 3D CAD Elements in 3D Scanned Data