voxcity 0.5.23__py3-none-any.whl → 0.5.24__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of voxcity might be problematic. Click here for more details.
- voxcity/utils/visualization.py +17 -17
- {voxcity-0.5.23.dist-info → voxcity-0.5.24.dist-info}/METADATA +1 -1
- {voxcity-0.5.23.dist-info → voxcity-0.5.24.dist-info}/RECORD +7 -7
- {voxcity-0.5.23.dist-info → voxcity-0.5.24.dist-info}/WHEEL +0 -0
- {voxcity-0.5.23.dist-info → voxcity-0.5.24.dist-info}/licenses/AUTHORS.rst +0 -0
- {voxcity-0.5.23.dist-info → voxcity-0.5.24.dist-info}/licenses/LICENSE +0 -0
- {voxcity-0.5.23.dist-info → voxcity-0.5.24.dist-info}/top_level.txt +0 -0
voxcity/utils/visualization.py
CHANGED
|
@@ -2490,20 +2490,26 @@ def visualize_voxcity_with_sim_meshes(voxel_array, meshsize, custom_meshes=None,
|
|
|
2490
2490
|
# plt.tight_layout()
|
|
2491
2491
|
# plt.show()
|
|
2492
2492
|
|
|
2493
|
-
# Export if filename provided
|
|
2494
|
-
if base_filename is not None:
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2493
|
+
# # Export if filename provided
|
|
2494
|
+
# if base_filename is not None:
|
|
2495
|
+
# print(f"Exporting files to '{base_filename}.*' ...")
|
|
2496
|
+
# # Create output directory if it doesn't exist
|
|
2497
|
+
# os.makedirs(output_directory, exist_ok=True)
|
|
2498
|
+
# export_meshes(meshes, output_directory, base_filename)
|
|
2500
2499
|
|
|
2501
|
-
# Create and save multiple views
|
|
2502
|
-
print("Creating multiple views...")
|
|
2503
2500
|
# Create output directory if it doesn't exist
|
|
2504
2501
|
os.makedirs(output_directory, exist_ok=True)
|
|
2505
2502
|
|
|
2503
|
+
# After creating the meshes and before visualization
|
|
2504
|
+
if save_obj:
|
|
2505
|
+
output_directory = kwargs.get('output_directory', 'output')
|
|
2506
|
+
output_file_name = kwargs.get('output_file_name', 'voxcity_mesh')
|
|
2507
|
+
obj_path, mtl_path = save_obj_from_colored_mesh(meshes, output_directory, output_file_name)
|
|
2508
|
+
print(f"Saved mesh files to:\n {obj_path}\n {mtl_path}")
|
|
2509
|
+
|
|
2506
2510
|
if show_views:
|
|
2511
|
+
# Create and save multiple views
|
|
2512
|
+
print("Creating multiple views...")
|
|
2507
2513
|
image_files = create_multi_view_scene(meshes, output_directory=output_directory,
|
|
2508
2514
|
projection_type=projection_type,
|
|
2509
2515
|
distance_factor=distance_factor)
|
|
@@ -2516,14 +2522,8 @@ def visualize_voxcity_with_sim_meshes(voxel_array, meshsize, custom_meshes=None,
|
|
|
2516
2522
|
plt.title(view_name.replace('_', ' ').title(), pad=20)
|
|
2517
2523
|
plt.axis('off')
|
|
2518
2524
|
plt.show()
|
|
2519
|
-
plt.close()
|
|
2520
|
-
|
|
2521
|
-
# After creating the meshes and before visualization
|
|
2522
|
-
if save_obj:
|
|
2523
|
-
output_directory = kwargs.get('output_directory', 'output')
|
|
2524
|
-
output_file_name = kwargs.get('output_file_name', 'voxcity_mesh')
|
|
2525
|
-
obj_path, mtl_path = save_obj_from_colored_mesh(meshes, output_directory, output_file_name)
|
|
2526
|
-
print(f"Saved mesh files to:\n {obj_path}\n {mtl_path}")
|
|
2525
|
+
plt.close()
|
|
2526
|
+
|
|
2527
2527
|
|
|
2528
2528
|
def visualize_building_sim_results(voxel_array, meshsize, building_sim_mesh, **kwargs):
|
|
2529
2529
|
"""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: voxcity
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.24
|
|
4
4
|
Summary: voxcity is an easy and one-stop tool to output 3d city models for microclimate simulation by integrating multiple geospatial open-data
|
|
5
5
|
Author-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
|
|
6
6
|
Maintainer-email: Kunihiko Fujiwara <kunihiko@nus.edu.sg>
|
|
@@ -27,11 +27,11 @@ voxcity/simulator/view.py,sha256=F2c-XFdRN811_RJvsznRjbUu5Uv7C6iniezsUMD-Olw,594
|
|
|
27
27
|
voxcity/utils/__init__.py,sha256=Q-NYCqYnAAaF80KuNwpqIjbE7Ec3Gr4y_khMLIMhJrg,68
|
|
28
28
|
voxcity/utils/lc.py,sha256=h2yOWLUIrrummkyMyhRK5VbyrsPtslS0MJov_y0WGIQ,18925
|
|
29
29
|
voxcity/utils/material.py,sha256=H8K8Lq4wBL6dQtgj7esUW2U6wLCOTeOtelkTDJoRgMo,10007
|
|
30
|
-
voxcity/utils/visualization.py,sha256=
|
|
30
|
+
voxcity/utils/visualization.py,sha256=DWdkViMhwzoKf7qBD47uti5Qw7wYsI041jFePZm63KQ,112832
|
|
31
31
|
voxcity/utils/weather.py,sha256=2Jtg-rIVJcsTtiKE-KuDnhIqS1-MSS16_zFRzj6zmu4,36435
|
|
32
|
-
voxcity-0.5.
|
|
33
|
-
voxcity-0.5.
|
|
34
|
-
voxcity-0.5.
|
|
35
|
-
voxcity-0.5.
|
|
36
|
-
voxcity-0.5.
|
|
37
|
-
voxcity-0.5.
|
|
32
|
+
voxcity-0.5.24.dist-info/licenses/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
|
|
33
|
+
voxcity-0.5.24.dist-info/licenses/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
|
|
34
|
+
voxcity-0.5.24.dist-info/METADATA,sha256=ADjf1Z75Z0BVCKAo2s-QbD2C890hbOkHpMx9FJNv5w4,26695
|
|
35
|
+
voxcity-0.5.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
36
|
+
voxcity-0.5.24.dist-info/top_level.txt,sha256=00b2U-LKfDllt6RL1R33MXie5MvxzUFye0NGD96t_8I,8
|
|
37
|
+
voxcity-0.5.24.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|