@Arciera,
Thanks for responce.
3. I think that's the same behavior as the current planner
Yes, looks like so.
@Julian,
Also thanks for responce.
I like the idea also. So you want to go nearer to the points before doing a spline.
The idea is polyline simplyfication. Then i thought maybe use :
Douglas-Peucker
Visvalingam-Whyatt
However both algo's don't satisfy cnc path smoothing.
Then i tried something on a paper with a pen myself. And came up with the triangles
centroid idea.
In Cgal they use the idea off convex hull for triangles.
However,
this idea is not really using a convex hull method, it's more like a forward sweep convex hull or
triangle-fan.
When the resulting line strip looks ok. Then doing a splinify is problably most succesfully.
However, if you use the "filter algo from previous post" then used as the planners back-end,
the result is maybe good enhough, you don't need the splinify.
Splitting in half between edgepoint and last point if next angle is the ame direction. And going one step back if the direction will change (not perfectly described of course).
I don't get it. . But does'nt matter. Thanks for your help yesterday !
From DeepSeek:
Possible Names or Related Algorithms:
Laplacian Smoothing:
A common technique in mesh and curve smoothing that averages points with their neighbors. Your method is somewhat similar but uses centroids and halfway points instead of direct averaging.
Centroidal Voronoi Tessellation (CVT)
While not a direct match, CVT involves optimizing point positions (like centroids) to achieve smoothness in a geometric structure.
It looks like the algo is similar to Laplacian smoothing for the first stage.
liqimai.github.io/blog/AAAI-18/
However the Laplacian is not using centrold's. And here it show's only the 2d solution. And algo is
working different as we use it.
Then it has no second stage.