inire/examples/README.md
Jan Petykiewicz eac083a37d Refine routing geometry checks and streamline documentation
Report coincident terminals and unusable seeds per net, update custom bend handling and verification, and cover the revised behavior with regression tests.

Shorten the user and developer guides around reader tasks and keep the illustrated routing walkthrough and reference links easy to find.
2026-11-29 23:12:28 -08:00

44 lines
2.1 KiB
Markdown

# Routing examples
## Start with a connection
- [Run the quick start](../README.md#route-a-net)
![A straight waveguide from (50, 100) to (250, 100). Both port arrows point east.](../docs/figures/first-route.png)
## 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.](../docs/figures/example-stress-crossings-shared-outside-detour.png)
All nine routes verify. Follow the long lower route beneath both south approaches.
- [Run this layout and browse other advanced cases](advanced.md)
## Optional workflows
After [installing Inire](../README.md#install), 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.](03_locked_paths.png)
`FixedRoute.from_result()` reserves the straight route. The next connection detours around its end.
- [Runnable fixed-route example](03_locked_paths.py)
- [Reuse a route in your own layout](../docs/user/route-a-layout.md#reuse-an-existing-route)
<a id="fit-bends-to-available-room"></a>
### Set the bend geometry
- **Choose allowed radii and offsets.** The [radii and S-bends example](04_sbends_and_radii.py) supplies two 90-degree bend radii and a 5-unit S-bend offset.
- **Supply a custom bend shape.** The [custom bends example](08_custom_bend_geometry.py) sets a physical polygon for the waveguide and a separate box for collision checks during search. The [bend proxy comparison](06_bend_collision_models.py) shows how the same circular bend can use different shapes for collision checks.
<a id="diagnose-congestion-or-an-incomplete-route"></a>
### Inspect an incomplete route
At `node_limit=3`, the route stops after its first turn. At 500 it reaches the target.
- [Run the best-effort example](09_unroutable_best_effort.py)
- [Diagnose a partial route](../docs/user/tune-and-troubleshoot.md#why-a-net-stopped-short)