Mathematical Principles for Curve and Surface Representation