This demo shows the use of RamerDouglasPeucker to reduce the number of points of a path while keeping the same shape representation as possible which depends on desired precision that you can ajust.
https://www.vbforums.com/images/ieimages/2025/07/13.png
