inire/examples
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-12-02 20:35:06 -08:00
..
01_simple_route.png Initial buildout 2026-12-02 20:35:06 -08:00
01_simple_route.py Initial buildout 2026-12-02 20:35:06 -08:00
02_congestion_resolution.png Initial buildout 2026-12-02 20:35:06 -08:00
02_congestion_resolution.py Initial buildout 2026-12-02 20:35:06 -08:00
03_locked_paths.png Initial buildout 2026-12-02 20:35:06 -08:00
03_locked_paths.py Initial buildout 2026-12-02 20:35:06 -08:00
04_sbends_and_radii.png Initial buildout 2026-12-02 20:35:06 -08:00
04_sbends_and_radii.py Initial buildout 2026-12-02 20:35:06 -08:00
05_orientation_stress.png Initial buildout 2026-12-02 20:35:06 -08:00
05_orientation_stress.py Initial buildout 2026-12-02 20:35:06 -08:00
06_bend_collision_models.png Initial buildout 2026-12-02 20:35:06 -08:00
06_bend_collision_models.py Initial buildout 2026-12-02 20:35:06 -08:00
07_large_scale_routing.png Initial buildout 2026-12-02 20:35:06 -08:00
07_large_scale_routing.py Initial buildout 2026-12-02 20:35:06 -08:00
08_custom_bend_geometry.png Initial buildout 2026-12-02 20:35:06 -08:00
08_custom_bend_geometry.py Initial buildout 2026-12-02 20:35:06 -08:00
09_unroutable_best_effort.png Initial buildout 2026-12-02 20:35:06 -08:00
09_unroutable_best_effort.py Initial buildout 2026-12-02 20:35:06 -08:00
advanced-layouts.json Initial buildout 2026-12-02 20:35:06 -08:00
advanced.md Initial buildout 2026-12-02 20:35:06 -08:00
advanced_layouts.py Initial buildout 2026-12-02 20:35:06 -08:00
README.md Initial buildout 2026-12-02 20:35:06 -08:00

Routing examples

Start with a connection

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.

All nine routes verify. Follow the long lower route beneath both south approaches.

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.

FixedRoute.from_result() reserves the straight route. The next connection detours around its end.

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

At node_limit=3, the route stops after its first turn. At 500 it reaches the target.