Learning Compact Geometric Features