Polygon.Trim (gb.clipper2)

Function Trim ( ) As Polygon

Remove the vertices between adjacent collinear segments.

It will also remove duplicate vertices (adjacent vertices with identical coordinates).