Ramer–Douglas–Peucker algorithm: Difference between revisions

Content deleted Content added
m Pseudocode: fmt source tag
m use syntaxhighlight
Line 22:
=== Pseudocode ===
(Assumes the input is a one-based array)
<sourcesyntaxhighlight lang="python">
# source: https://karthaus.nl/rdp/
function DouglasPeucker(PointList[], epsilon)
Line 52:
# Return the result
return ResultList[]
</syntaxhighlight>
</source>
 
== Application ==