Automatic code compliance with multi-dimensional data fitting in a BIM context