Skip to content

hal.routing.straightline

straightline

straightline(array, start, goal)

Generate an axis-aligned straight path from start to goal if clear.

Returns a list of (x, y, z) positions when the straight path is valid given face-switching rules; otherwise returns False.

straightline_no_face_switches

straightline_no_face_switches(array, start, goal)

Generate a straight line path without face switches; return False if blocked.