To Fuse Collinear Edges within a Wire in the Main Menu select Repair - > Fuse Collinear Edges within a Wire.
This operation removes the selected vertices from a given wire, provided that the junction of two adjacent edges is C1 continuous (i.e. the edges have equal tangents at the junction).
The function takes a list of vertices to suppress as a parameter. If the list is empty, all vertices in a wire are taken into account.
Example:
Wire with 2 colinear edges:
Fused wire (only one edge):
Arguments: Name + a wire + a list of vertices (can be empty).
TUI Command: geompy.FuseCollinearEdgesWithinWire(wire, vertices), where wire is a wire and vertices is a list of vertices to be suppressed.
Our TUI Scripts provide you with useful examples of the Fuse Collinear Edges functionality usage.