Pātuhitia tēnei: Shape Design, Repair and Optimization