Shape preservation and the fair of curves