Details and Options
ResourceFunction["RegionFindShortestPath"][region,start,end] gives the shortest path from start to end as a sequence of points.
ResourceFunction["RegionFindShortestPath"][region,start] is equivalent to
ResourceFunction["RegionFindShortestPath"][region,start,All] ResourceFunction["RegionFindShortestPath"][region] is equivalent to
ResourceFunction["RegionFindShortestPath"][region,All,All] ResourceFunction["RegionFindShortestPath"][region,…] works only for 2D regions.
The following option can be given:
"MonitorProgress" | True | whether to show the progress of preprocessing region |
With the default setting
"MonitorProgress"→True,
ResourceFunction["MonitorProgress"] is used to display a progress bar during the preprocessing step.
When no path exists, ResourceFunction["RegionFindShortestPath"] returns {}.
If start or end or both are not within region, no path is found.
When searching for multiple paths in the same region, generating RegionShortestPathFunction[…] once will give a significant performance improvement in most cases.
When evaluating ResourceFunction["RegionFindShortestPath"], parts of the function are precompiled. This results in a slow first run.