| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .. | ||
| 01_simple_route.png | ||
| 01_simple_route.py | ||
| 02_congestion_resolution.png | ||
| 02_congestion_resolution.py | ||
| 03_locked_paths.png | ||
| 03_locked_paths.py | ||
| 04_sbends_and_radii.png | ||
| 04_sbends_and_radii.py | ||
| 05_orientation_stress.png | ||
| 05_orientation_stress.py | ||
| 06_bend_collision_models.png | ||
| 06_bend_collision_models.py | ||
| 07_large_scale_routing.png | ||
| 07_large_scale_routing.py | ||
| 08_custom_bend_geometry.png | ||
| 08_custom_bend_geometry.py | ||
| 09_unroutable_best_effort.png | ||
| 09_unroutable_best_effort.py | ||
| advanced-layouts.json | ||
| advanced.md | ||
| advanced_layouts.py | ||
| README.md | ||
Routing examples
Start with a connection
The quick start uses one call to route() to connect two ports 200 units apart.
Route a challenging layout
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
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.


