To Remove extra edges in the Main Menu select Repair - > Remove extra edges.
This operation removes all seam and degenerated edges from a given shape. Its main purpose is healing of solids and compounds to obtain hexahedral solids and compounds of hexahedral solids. However, there is an option to unite all faces sharing one surface, which produces not only hexahedral solids.
TUI Command: geompy.RemoveExtraEdges(theShape,doUnionFaces), where theShape is a compound or a single solid and doUnionFaces is a boolean parameter, that regulates, whether the faces, sharing a common surface, should be united.
Arguments: Name + one shape + a flag.
Advanced option: Set presentation parameters and sub-shapes from arguments.
Example:
Our TUI Scripts provide you with useful examples of the Remove Extra Edges functionality usage.