Routing

Routing#

Routing contains a collection of functions for routing in a network. Provides methods for creating fillet routing lines and Bezier curves between two anchor points.

ArcLine(centerx, centery, radius, ...[, ...])

Returns LineString representing an arc.

create_route(a1, a2, radius[, num_segments, ...])

Returns a fillet routing linestring

get_fillet_params(anchor, radius)

Calculate the lengths required for fillet routing and return fillet parameters.

make_bezier_line(a1, a2[, num_segments, ...])

Returns a Bezier routing LineString.

make_fillet_line(length1, length2, ...)

Returns a fillet shape LineString.

normalize_anchors(anchor1, anchor2)

Returns normalizied anchor:

snap_line_to_anchor(anchor, line)

Snaps the linestring to the anchor position and direction