Support more region utils, such as convex hull
This commit is contained in:
@@ -939,6 +939,15 @@ def clean_scada_element(name: str) -> ChangeSet:
|
||||
# region_util 32
|
||||
############################################################
|
||||
|
||||
def get_nodes_in_boundary(name: str, boundary: list[tuple[float, float]]) -> list[str]:
|
||||
return api.get_nodes_in_boundary(name, boundary)
|
||||
|
||||
def get_nodes_in_region(name: str, id: str) -> list[str]:
|
||||
return api.get_nodes_in_region(name, id)
|
||||
|
||||
def calculate_convex_hull(name: str, nodes: list[str]) -> list[tuple[float, float]]:
|
||||
return api.calculate_convex_hull(name, nodes)
|
||||
|
||||
|
||||
############################################################
|
||||
# general_region 33
|
||||
|
||||
Reference in New Issue
Block a user