I would like to use MeshFunctions
in ParametricPlot
in combination with BSplineFunction
to extract parameters for points on the curve.
I have a set of points:
pts = {{0, 0}, {3, 4}, {-1, 4}, {-4, 0}, {-4, -3}};
Then I use BSplineFunction
to create a BSpline curve. BSplineFunction[...]][u]
gives the point on a B-spline curve corresponding to parameter u
.
I want to find the parameter u
corresponding to a point on the curve. For that I can use FindRoot
:
u =
Table[
u /. FindRoot[function[u][[1]] == pts[[i, 1]], {u, 0.0, 1.0}],
{i, Length[pts - 1]}
]
I would like to use MeshFunctions
for this. How can I do that?
function
in your code? What advantage do you seek fromMeshFunctions
that is not achievable with the solution you have now? $\endgroup$pts
is control points, does not on the curve. BTW,function[u][[1]]
is{0., 3., -1., -4., -4.}
, so theFindRoot
does not take effect. $\endgroup$