diff --git a/api/s32_region_util.py b/api/s32_region_util.py index 7970343..a01fee9 100644 --- a/api/s32_region_util.py +++ b/api/s32_region_util.py @@ -236,14 +236,15 @@ def _collect_new_links(in_links: dict[str, list[str]], t_nodes: dict[str, Any], return (new_nodes, new_links) -def calculate_boundary(name: str, nodes: list[str]) -> list[tuple[float, float]]: +def calculate_boundary(name: str, nodes: list[str], accurate = False) -> list[tuple[float, float]]: topology = Topology(name, nodes) t_nodes = topology.nodes() t_links = topology.links() vertices, path, boundary = _calculate_boundary(topology.max_x_node(), t_nodes, t_links) - #return boundary + if not accurate: + return boundary api = 'calculate_boundary' write(name, f"delete from temp_region where id = '{api}'")