Curve and Surface Reconstruction: Algorithms with Mathematical Analysis