One bug in PSPLINE
aishuirenjia opened this issue · 1 comments
aishuirenjia commented
Dear Bjarne,
My English writing ability is not good, but I will try my best to express what i have come across.
I have looked into SPLINTER because I need to calculate p-splines for boundary points from 2D point clouds. I use C++ interface. My code is that
BSpline pspline =
BSpline::Builder(samples).degree(3).smoothing(BSpline::Smoothing::PSPLINE).alpha(1.0).build();
When I did the circular boundary, something went wrong. As we known, x and y of the circle do not map uniquely to each other. so if i do the code
pspline.eval(x)
, it will occur that one x value corresponds to two y values, and there is ambiguity.
I was wondering if you have handled this kind of event in your code???