Commit 27ca5d65 authored by JasonChmn's avatar JasonChmn
Browse files

Add test when converting a derivative of bezier curve

parent 312c4fd2
Pipeline #5874 passed with stage
in 16 minutes and 51 seconds
......@@ -522,6 +522,11 @@ void cubicConversionTest(bool& error)
//std::cout<<"bezier to hermite \n";
cubic_hermite_spline_t chs2 = hermite_from_curve<cubic_hermite_spline_t, bezier_curve_t>(bc0);
CompareCurves<bezier_curve_t, cubic_hermite_spline_t>(bc0, chs2, errMsg1, error);
// Test : compute derivative of bezier => Convert it to polynomial
bezier_curve_t bc_der = bc0.compute_derivate(1);
polynomial_t pol_test = polynomial_from_curve<polynomial_t, bezier_curve_t>(bc_der);
CompareCurves<bezier_curve_t, polynomial_t>(bc_der, pol_test, errMsg1, error);
/*Exact Cubic Function tests*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment