Shape variable definition with C0, C1 and C2 continuity functions