documentationfor yFiles for HTML 2.6

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
layout-core
yfiles-umd modules
All layout modules, view-layout-bridge
Legacy UMD name
yfiles.layout.RemoveCollinearBendsStage

Constructors

Properties

Methods