SMS dit: Mathematics of shape description