inire/examples/README.md

2.5 KiB

Routing examples

Run these scripts from the repository root after installation. Each script saves a PNG alongside its source.

python examples/01_simple_route.py

Start with a connection

Route around fixed geometry

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

The first route runs straight. The second must turn around its left end to reach the other side. Run the locked-path example, or use the public API workflow to pass fixed polygons into another run.

Fit bends to available room

A short S-bend shifts one guide laterally. A separate route uses two 90-degree bends to make a larger vertical shift.

The short path fits a small offset with an S-bend. The longer path has room for a pair of right-angle bends. Run S-bends and radii to see both geometries.

Diagnose congestion or an incomplete route

In plots with a physical overlay, dashed outlines show search proxies and solid outlines show physical geometry. Use the physical outlines to inspect clearance and result.outcome to interpret red paths. Result guide