StripNearDuplicates

function StripNearDuplicates(const path: TPathD; minDist: double; isClosedPath: Boolean): TPathD; overload;

function StripNearDuplicates(const paths: TPathsD; minDist: double; isClosedPaths: Boolean): TPathsD; overload;

Removes vertices that are within the specified minDist from an adjacent vertex. If the path is closed, then minDist also applies between the first and last vertices.