Hi everyone !
I am trying to define ankerpoints for my kangaroo model. the points marked in red should be culled.
More specific:
all middle points of these red lines that have a smaller distance to all other points than to the end points of the red lines .
It works for the three lines on the right side(first 3 in gh) but not for the other ones (last 3 in gh) and I don’t know why because there doesn’t seem to be any difference.
Does anyone know how to fix this ?
although it’s a slightly lazy solution and unorthodox (@Joseph_Oster probably will rightfully rip the solution into pieces), I think it might show you a possible solution depending on the flexibility of your constrains.
another (very similar) approach to replace discontinuities, would be a graham scan to obtain the hull or edge points only depending on how you handle straight segments or angle tolerances. (you want to delete them as well as left-turns) This will work only if your lines are not concave towards extern. convex will be handled just fine. EDIT: logical error on my side, forget about graham scan, it wont work as its hull, which doesn’t fit your needs.
From what I understand, the biggeset problem you have is the non-linear polyline.
Similar to the solution by @benedict but using Mesh Shadow component to get starting polyline then shatter at discontinuities, cull unwanted segments, and explode gives desired points.