documentationfor yFiles for HTML 3.0.0.3

RemoveCollinearBendsStage

The RemoveCollinearBendsStage removes all collinear bends found in a graph.

Inheritance Hierarchy
LayoutStageBase
RemoveCollinearBendsStage
Implemented Interfaces

Remarks

The algorithm traverses each edge path from source to target and removes for each triple of consecutive collinear bends the middle one.

A collinear bend forms a straight line with its preceding bend and its subsequent bend. The angle between the connecting edge segments is either 0 or 180 degrees.

Default Values of Properties

removeStraightOnlyfalseAll collinear bends are removed from the edges.
scale2Bend coordinates are rounded to the second decimal position before comparing.

Type Details

yFiles module
algorithms

Constructors

Properties

Methods