inire/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 12:13:04 -08:00
..
01_simple_route.png add missing images 2026-04-06 16:42:40 -07:00
01_simple_route.py rework structure of everything 2026-03-30 15:32:29 -07:00
02_congestion_resolution.png Clarify routing documentation and refresh example figures 2026-11-27 11:59:22 -08:00
02_congestion_resolution.py example fixes and improvements 2026-03-30 23:40:29 -07:00
03_locked_paths.png Add refinement by default 2026-03-29 15:46:37 -07:00
03_locked_paths.py Demonstrate locked routes with two public routing calls 2026-11-27 00:38:00 -08:00
04_sbends_and_radii.png add missing images 2026-04-06 16:42:40 -07:00
04_sbends_and_radii.py rework structure of everything 2026-03-30 15:32:29 -07:00
05_orientation_stress.png Clarify routing documentation and refresh example figures 2026-11-27 11:59:22 -08:00
05_orientation_stress.py Clarify routing documentation and refresh example figures 2026-11-27 11:59:22 -08:00
06_bend_collision_models.png Clarify routing documentation and refresh example figures 2026-11-27 11:59:22 -08:00
06_bend_collision_models.py example fixes and improvements 2026-03-30 23:40:29 -07:00
07_large_scale_routing.png add missing images 2026-04-06 16:42:40 -07:00
07_large_scale_routing.py fix examples 2026-03-30 21:22:20 -07:00
08_custom_bend_geometry.png add missing images 2026-04-06 16:42:40 -07:00
08_custom_bend_geometry.py example fixes and improvements 2026-03-30 23:40:29 -07:00
09_unroutable_best_effort.png Clarify routing documentation and refresh example figures 2026-11-27 11:59:22 -08:00
09_unroutable_best_effort.py Tie routing documentation to user and developer workflows 2026-11-27 10:15:54 -08:00
advanced-layouts.json Show stress and Terminal-Bench layouts in the examples gallery 2026-11-27 10:16:12 -08:00
advanced.md Clarify routing documentation and refresh example figures 2026-11-27 11:59:22 -08:00
advanced_layouts.py Show stress and Terminal-Bench layouts in the examples gallery 2026-11-27 10:16:12 -08:00
README.md Reorder routing examples around user workflows 2026-11-27 12:13:04 -08:00

Routing examples

Start with a connection

The quick start uses one call to route() to connect two ports 200 units apart.

A straight waveguide from (50, 100) to (250, 100). Both port arrows point east.

Route a challenging layout

The input board has two preplaced crossing cells, port arrows, and gray keepouts. The result shows all nine routes, including a straight link between the cells and a long detour underneath their south ports.

Inire verifies all nine connections on this board. One waveguide links the two preplaced crossings, and the long lower route passes beneath both south approaches. For the runnable setup and more boards, see the advanced gallery.

Optional workflows

After installing Inire, run the example scripts with Python from the repository root. Each saves a PNG in examples/.

Route around fixed geometry

A second waveguide makes a U-shaped detour around the left end of a fixed straight waveguide.

The first call routes a straight waveguide. The second uses its polygons as keepouts, so the new connection passes to the left of the fixed route. Run 03_locked_paths.py to reproduce the detour. To hold a route fixed in your own design, follow the route reuse workflow.

Set the bend geometry

  • Choose allowed radii and offsets. The radii and S-bends example supplies two 90-degree bend radii and a 5-unit S-bend offset.
  • Supply a custom bend shape. The custom bends example sets a physical polygon for the waveguide and a separate box for collision checks during search. The bend proxy comparison shows how the same circular bend can use different shapes for collision checks.

Inspect an incomplete route

In the best-effort example, the path stops after its first turn at node_limit=3 and reaches its target at 500. Compare the two paths to see where the node budget matters.