Adds a method to the Curve2D and Curve3D classes to easily clear the curve. So you don't have to remove each point manually. (cherry picked from commit e741da869a)
e741da869a