The algorithm behind reduce polyline component

Does anybody know the algorithm behind the “reduce” component?

It is
Douglas-Peucker

see this thread and go to MyJetBrain

implemented it in C# because I needed it in an other application and I just implemented (2h ago !) a very poor version of the other one
Visvalingam Whyatt

4 Likes

I’m really grateful for your response. It confirmed my suspicions that it is the Douglas Peucker Algorithm

If you are that suspicious (and you can read code) see what exactly DP does (and PlanB (Reumann) as well).

Reduce_curve_DP_or_R_V1.gh (134.7 KB)

3 Likes