create_route

Contents

create_route#

zeroheliumkit.src.routing.create_route(a1: Anchor, a2: Anchor, radius: float, num_segments: int = 10, print_status: bool = False, bezier_cfg: dict = {'depth_factor': 3, 'extension_fraction': 0.1}) LineString[source]#

Returns a fillet routing linestring

Parameters:
  • a1 (Anchor) – The first anchor.

  • a2 (Anchor) – The second anchor.

  • radius (float) – The radius of the fillet.

  • num_segments (int, optional) – The number of segments to use for the fillet curve. Defaults to 10.

  • print_status (bool, optional) – If True, prints the status of the route construction. Defaults to False.

  • bezier_cfg (dict, optional) – Configuration for Bezier curve construction. Defaults to {“extension_fraction”: 0.1, “depth_factor”: 3}.

Returns:

A linestring representing the route between two anchors.

Return type:

LineString

Raises:

RouteError – If the route cannot be constructed between the two anchors.