Added automated detection of model structure (vertices, faces and materials)