- resqpy.olio.simple_lines.duplicate_vertices_removed(line, tolerance=0.001)¶
Returns a copy of the line with neighbouring duplicate vertices removed.
line (2D numpy array of floats) – representation of a poly-line
tolerance (float, default = 0.001) – the maximum Manhatten distance between two points for them to be treated as coincident
numpy array of floats which is either a copy of line, or a copy of line with some points removed
does not treat the line as a closed polyline, use polygon_line() function as well to remove duplicated first/last point; always preserves first and last point, even if they are identical and there are no other vertices