Is it reasonable for the degree of resultant curve exceeds the MaxDegree of GeomConvert_ApproxCurve? #142
Replies: 4 comments
-
However, approximate a circle with a cubic spline within the specified tolerance is possible. For example:
circle equation in parametric form : x(t) = 10 Cos[6.28319 t], Error analysis (two components: |
Beta Was this translation helpful? Give feedback.
-
@dpasukhi Do you think this throw statement is redundant? From the math point of view, ndu = Max(myMaxDegInU+1,2*iu+2);
ndv = Max(myMaxDegInV+1,2*iv+2);
if (ndu<2*iu+2)
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : UMaxDegree Error");
if (ndv<2*iv+2)
throw Standard_ConstructionError("AdvApp2Var_ApproxAFunc2Var : VMaxDegree Error"); |
Beta Was this translation helpful? Give feedback.
-
Shouldn't you swap max_degree and max_segments in your first example? According to the docs max_degree is the last parameter. |
Beta Was this translation helpful? Give feedback.
-
@arjan-schouten Thanks:) |
Beta Was this translation helpful? Give feedback.
-
Consider the following code:
The degree of the approximation curve is 9, a 9-th degree Bezier curve.
However, the document says:
In the above case, the setting for MaxDegree is only 3.
Beta Was this translation helpful? Give feedback.
All reactions