RouteAnchors.unobstructed_close_up#

RouteAnchors.unobstructed_close_up(segment: list, component_name: str) bool[source]#

Checks whether the given component’s perimeter intersects or overlaps a given segment.

Parameters:
  • segment (list) – 2 vertices, in the form [np.array([x0, y0]), np.array([x1, y1])]

  • component_name (str) – Alphanumeric component name

Returns:

True is no obstacles

Return type:

bool