A Bag of Features Approach for 3D Shape Retrieval