De Casteljau's algorithm in geometric data analysis: Theory and application