Assignments of GAMES 102. Website of GAMES 102: Geometry Modeling and Processing.
Use python to implement polynomial interpolation, gaussian interpolation, polynomial regression and ridge regression. Type command:
python fit.py
It will eject a window that you can put your own points. After setting your points, close the window. It will eject another window that shows the fitting results with different colors. The results will be like:
Use pytorch to build a RBFNet to fit some points. See demo:
Use parameterization to fit an arbitrary curve, which does not have to be a function. Use Taichi for visualization.
Note that there were some bugs of foley parameterization, which have been fixed. However, the gif has not been updated yet.
Implementation of 7 kinds of curve.
- Natural cubic spline
- End slope spline
- G1-0
- G1-1
- G0
- Bezier
- Bezier interpolation
More details can refer to hw4/report.pdf
.
Implementation of subdivision curve.
- Chaikin
- Uniform Cubic B Spline
- 4-point interpolation
More details can refer to hw5/report.pdf
.
More details can refer to hw6/report.pdf
.
More details can refer to hw7/report.pdf
.
More details can refer to hw8/report.pdf
.
More details can refer to hw9/report.pdf
.
More details can refer to hw10/report.pdf
.
Code can refer to https://github.com/MyEvolution/Dragon