Support to get link on boundary

This commit is contained in:
wqy
2023-07-21 18:40:27 +08:00
parent 4c6e257d1d
commit fb347ba03a
5 changed files with 77 additions and 14 deletions

9
dev.py
View File

@@ -1,11 +1,10 @@
from tjnetwork import *
p = 'dev'
read_inp(p, './inp/net3.inp', '3')
read_inp(p, f'./inp/net3.inp', '3')
open_project(p)
sass = calculate_service_area(p)
assert len(sass) == 25
print(sass[0])
print(sass[1])
add_region(p, ChangeSet({'id': 'r', 'boundary': [(24.614,13.087), (24.835,11.069), (26.144,10.747), (27.290,11.543), (25.726,12.987), (24.614,13.087)]}))
links = get_links_on_region_boundary(p, 'r')
print(links)