Orientationof 3D shapes via tensor rank minimization