2d and 3d geometric object modeling via medial representations 2725820