Appends sample points along this curve, numSamples - number of points for the partition of the curve. if numSamples == 0 - partition curve depending on the type and interval