example fixes and improvements
This commit is contained in:
parent
e11132b51d
commit
e2c91076f7
18 changed files with 336 additions and 144 deletions
5
DOCS.md
5
DOCS.md
|
|
@ -80,7 +80,9 @@ Use `RoutingProblem.initial_paths` to provide semantic per-net seeds. Seeds are
|
|||
| `bend_radii` | `(50.0, 100.0)` | Available radii for 90-degree bends. |
|
||||
| `sbend_radii` | `(10.0,)` | Available radii for S-bends. |
|
||||
| `sbend_offsets` | `None` | Optional explicit lateral offsets for S-bends. |
|
||||
| `bend_collision_type` | `"arc"` | Bend collision model: `"arc"`, `"bbox"`, `"clipped_bbox"`, or a custom polygon. |
|
||||
| `bend_collision_type` | `"arc"` | Bend collision/proxy model: `"arc"`, `"bbox"`, `"clipped_bbox"`, or, for backward compatibility, a custom polygon. A legacy custom polygon here is treated as both the physical bend and its proxy unless overridden by the split fields below. |
|
||||
| `bend_proxy_geometry` | `None` | Optional explicit bend proxy geometry. Use this when you want a custom search/collision envelope that differs from the routed bend shape. Supplying only a custom polygon proxy warns and keeps the physical bend as the standard arc. |
|
||||
| `bend_physical_geometry` | `None` | Optional explicit bend physical geometry. Use `"arc"` or a custom polygon. If you set a custom physical polygon and do not set a proxy, the proxy defaults to the same polygon. |
|
||||
| `bend_clip_margin` | `None` | Optional legacy shrink margin for `"clipped_bbox"`. Leave `None` for the default 8-point proxy. |
|
||||
| `visibility_guidance` | `"tangent_corner"` | Visibility-derived straight candidate strategy. |
|
||||
|
||||
|
|
@ -161,6 +163,7 @@ Lower-level search and collision modules are semi-private implementation details
|
|||
|
||||
- Increase `objective.bend_penalty` to discourage ladders of small bends.
|
||||
- Increase available `search.bend_radii` when larger turns are physically acceptable.
|
||||
- Use `search.bend_physical_geometry` and `search.bend_proxy_geometry` together when you need a real custom bend shape plus a different conservative proxy.
|
||||
|
||||
### Visibility guidance
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue