Curve Point Distribution by Simpson Rule

C++.  This project is still going on; it needs for some improvements. Its purpose is to equally distribute desired number of points on a curve. To do that, I applied Simpson rule by  sweeping small increments on x axis instead of using full Integral calculations. Then, I rotated this curve point distribution on x axis by 12 times (including start points) to get a 3D shape. Later on, I will work on those improvements to reduce errors.

Here, I took the function y = x^2 + 1 as an example by 21 points:

 

References:

[1] Simpson Rule