(mapping_dict, info_on_pix, *meshes)
| 790 | return depth_dict |
| 791 | |
| 792 | def update_info(mapping_dict, info_on_pix, *meshes): |
| 793 | rt_meshes = [] |
| 794 | for mesh in meshes: |
| 795 | rt_meshes.append(relabel_node(mesh, mesh.nodes, [*mapping_dict.keys()][0], [*mapping_dict.values()][0])) |
| 796 | x, y, _ = [*mapping_dict.keys()][0] |
| 797 | info_on_pix[(x, y)][0]['depth'] = [*mapping_dict.values()][0][2] |
| 798 | |
| 799 | return [info_on_pix] + rt_meshes |
| 800 | |
| 801 | def build_connection(mesh, cur_node, dst_node): |
| 802 | if (abs(cur_node[0] - dst_node[0]) + abs(cur_node[1] - dst_node[1])) < 2: |
no test coverage detected