The bag of words approach for retrieval and categorization of 3D objects