added class "mesh3d" attribute in polyData2R for the case output has faces
added some checks and functionality for 2D data in statismoBuildModel