Model-based recognition of curves and surfaces using tactile data