Small error in curve length calculation
I was creating a Bezier curve with control points (1,0) (1,1) (0,1) and then calculated the length of the curve by calculating the mass by BRepGProp::LinearProperties . However, if I compare the analytical curve length with the numerical one, there is an error between the two of them.
Analytical length: 1.62322524014023
Numerical length: 1.6232134893224
You can see that this difference is quite big actually.
Can you give me some hints about how the length of the curve is calculated? I have used an own algorithm to calculate the curve length by integrating the length of the tangent vector along the parameter space of the curve, and it gave a more precise result.