Keep constructive routing available without triangulation
This commit is contained in:
parent
c3e420eadb
commit
760182f25c
1 changed files with 260 additions and 153 deletions
|
|
@ -67,6 +67,32 @@ python -m scripts.compare_topological_routing \
|
|||
|
||||
To see how heading inference changes the route, rerun the gallery command with `--case complex-routing-example-1-point-terminals`. Automatic accepts the westbound arrival for `net_08`, verifies the original `bundle` plan, and then refines it. Both stages again verify nine nets with zero A* expansions. [Point-terminal figure](../examples/advanced.md#point-terminals) · [Waypoint export command](benchmark-fixtures.md#complex-routing-example-1)
|
||||
|
||||
## Compare all routing modes
|
||||
|
||||
These runs use the same nine-net board with a 100-node limit per search, one congestion iteration, warm start disabled, and refinement disabled. The table compares a run with triangulation available against a run with that capability disabled. Each mode keeps the input headings except `bundle`, which uses `infer_terminal_headings=True` so `net_08` can arrive westbound. Explicit `bundle` with the original fixed eastbound headings raises a heading mismatch for that net.
|
||||
|
||||
| Mode | With triangulation available | Without triangulation |
|
||||
| --- | --- | --- |
|
||||
| `automatic` | 9/9 verified. The turnaround plan completes the layout without building a mesh. | 9/9 verified through the same turnaround plan. Automatic uses lattice search if constructive planning leaves work. |
|
||||
| `off` | 0/9 verified at this budget. The worker runs lattice search directly. | Same search and result. |
|
||||
| `guide` | 1/9 verified. The worker builds a mesh and suggests corridors to lattice search. | Raises a dependency error when planning corridors. |
|
||||
| `seed` | 1/9 verified. The worker builds a mesh and searches for starting paths inside the corridors before its routing iteration. | Raises a dependency error when planning corridors. |
|
||||
| `bundle` | 9/9 verified. The worker builds and verifies ordered tracks directly from the board geometry. | Same plan and result. |
|
||||
|
||||

|
||||
|
||||
### Triangulation support
|
||||
|
||||
Corridor planning uses Shapely's constrained Delaunay triangulation to keep triangle edges inside free space and respect keepout boundaries. It requires **Shapely 2.1 or later and GEOS 3.10 or later**. On supported platforms a Shapely wheel bundles GEOS. In a pip environment, use `python -m pip install --upgrade "shapely>=2.1"`. A source build needs a compatible system GEOS. [Shapely triangulation reference](https://shapely.readthedocs.io/en/2.1.2/reference/shapely.constrained_delaunay_triangles.html) · [Shapely installation guide](https://shapely.readthedocs.io/en/2.1.2/installation.html)
|
||||
|
||||
Check the versions in the environment that runs Inire.
|
||||
|
||||
```sh
|
||||
python -c 'import shapely; print(shapely.__version__, shapely.geos_version_string)'
|
||||
```
|
||||
|
||||
Inire's base dependency permits Shapely 2.0 for lattice routing and constructive plans. With a compatible backend, automatic already uses triangulation whenever it needs corridor search. Here the ordered bundle and turnaround cover all nine nets, so automatic can move directly to verification. Explicit `guide` and `seed` also verify supplied paths without a mesh when `node_limit=0`.
|
||||
|
||||
## Compare a guide-mode search
|
||||
|
||||
The successful bundle run above reaches verification before the corridor search. To see that search's working model, the figure generator runs `net_08` by itself in guide mode on the same board. The left panel shows the actual triangulation, corridor cells in green, and the guide through them as a dashed line. The right panel zooms in on the expanded positions and physical partial path returned when A* reaches its 12-node budget. [Corridor planning](topological-routing.md#corridor-planning-and-realization)
|
||||
|
|
|
|||
Loading…
Reference in a new issue