voxcity 0.6.11__py3-none-any.whl → 0.6.12__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/downloader/osm.py +75 -10
- voxcity/geoprocessor/draw.py +1085 -832
- voxcity/utils/visualization.py +14 -6
- {voxcity-0.6.11.dist-info → voxcity-0.6.12.dist-info}/METADATA +1 -1
- {voxcity-0.6.11.dist-info → voxcity-0.6.12.dist-info}/RECORD +8 -8
- {voxcity-0.6.11.dist-info → voxcity-0.6.12.dist-info}/AUTHORS.rst +0 -0
- {voxcity-0.6.11.dist-info → voxcity-0.6.12.dist-info}/LICENSE +0 -0
- {voxcity-0.6.11.dist-info → voxcity-0.6.12.dist-info}/WHEEL +0 -0
voxcity/utils/visualization.py
CHANGED
|
@@ -1933,8 +1933,8 @@ def create_multi_view_scene(meshes, output_directory="output", projection_type="
|
|
|
1933
1933
|
|
|
1934
1934
|
images = []
|
|
1935
1935
|
for view_name, camera_pos in camera_positions.items():
|
|
1936
|
-
# Create new plotter for each view
|
|
1937
|
-
plotter = pv.Plotter(
|
|
1936
|
+
# Create new plotter for each view (avoid notebook backend in headless/CI)
|
|
1937
|
+
plotter = pv.Plotter(off_screen=True)
|
|
1938
1938
|
|
|
1939
1939
|
# Set the projection type
|
|
1940
1940
|
if projection_type.lower() == "orthographic":
|
|
@@ -2047,10 +2047,6 @@ def visualize_voxcity_multi_view(voxel_array, meshsize, **kwargs):
|
|
|
2047
2047
|
... save_obj=True
|
|
2048
2048
|
... )
|
|
2049
2049
|
"""
|
|
2050
|
-
# Set up headless rendering environment for PyVista
|
|
2051
|
-
os.system('Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &')
|
|
2052
|
-
os.environ['DISPLAY'] = ':99'
|
|
2053
|
-
|
|
2054
2050
|
# Configure PyVista settings for high-quality rendering
|
|
2055
2051
|
pv.set_plot_theme('document')
|
|
2056
2052
|
pv.global_theme.background = 'white'
|
|
@@ -2082,6 +2078,18 @@ def visualize_voxcity_multi_view(voxel_array, meshsize, **kwargs):
|
|
|
2082
2078
|
# Output control parameters
|
|
2083
2079
|
save_obj = kwargs.get("save_obj", False)
|
|
2084
2080
|
show_views = kwargs.get("show_views", True)
|
|
2081
|
+
# Disable rendering in CI/headless to avoid VTK segfaults
|
|
2082
|
+
if os.getenv('GITHUB_ACTIONS', 'false').lower() == 'true' or os.getenv('CI', 'false').lower() == 'true':
|
|
2083
|
+
show_views = False
|
|
2084
|
+
|
|
2085
|
+
# Set up headless rendering environment for PyVista only if we will render
|
|
2086
|
+
if show_views and sys.platform.startswith('linux'):
|
|
2087
|
+
try:
|
|
2088
|
+
import pyvista as _pv
|
|
2089
|
+
_pv.start_xvfb()
|
|
2090
|
+
except Exception:
|
|
2091
|
+
os.system('Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &')
|
|
2092
|
+
os.environ['DISPLAY'] = ':99'
|
|
2085
2093
|
|
|
2086
2094
|
# Create 3D meshes from voxel data
|
|
2087
2095
|
print("Creating voxel meshes...")
|
|
@@ -5,7 +5,7 @@ voxcity/downloader/eubucco.py,sha256=ln1YNaaOgJfxNfCtVbYaMm775-bUvpAA_LDv60_i22w
|
|
|
5
5
|
voxcity/downloader/gee.py,sha256=nvJvYqcSZyyontRtG2cFeb__ZJfeY4rRN1NBPORxLwQ,23557
|
|
6
6
|
voxcity/downloader/mbfp.py,sha256=UXDVjsO0fnb0fSal9yqrSFEIBThnRmnutnp08kZTmCA,6595
|
|
7
7
|
voxcity/downloader/oemj.py,sha256=iDacTpiqn7RAXuqyEtHP29m0Cycwta5sMy9-GdvX3Fg,12293
|
|
8
|
-
voxcity/downloader/osm.py,sha256=
|
|
8
|
+
voxcity/downloader/osm.py,sha256=3vyH5jdPNe1vDXBYObLB0mtzYw7Ax8sEoF2KVn6UQO4,45561
|
|
9
9
|
voxcity/downloader/overture.py,sha256=4YG2DMwUSSyZKUw_o8cGhMmAkPJon82aPqOFBvrre-Y,11987
|
|
10
10
|
voxcity/downloader/utils.py,sha256=tz6wt4B9BhEOyvoF5OYXlr8rUd5cBEDedWL3j__oT70,3099
|
|
11
11
|
voxcity/exporter/__init__.py,sha256=dvyWJ184Eik9tFc0VviGbzTQzZi7O0JNyrqi_n39pVI,94
|
|
@@ -15,7 +15,7 @@ voxcity/exporter/magicavoxel.py,sha256=SfGEgTZRlossKx3Xrv9d3iKSX-HmfQJEL9lZHgWMD
|
|
|
15
15
|
voxcity/exporter/obj.py,sha256=h1_aInpemcsu96fSTwjKMqX2VZAFYbZbElWd4M1ogyI,27973
|
|
16
16
|
voxcity/generator.py,sha256=ok0LqVk9k0xVqXD9Ybar-CWmqi-vooJmrAFi9WjsaKE,58327
|
|
17
17
|
voxcity/geoprocessor/__init__.py,sha256=WYxcAQrjGucIvGHF0JTC6rONZzL3kCms1S2vpzS6KaU,127
|
|
18
|
-
voxcity/geoprocessor/draw.py,sha256=
|
|
18
|
+
voxcity/geoprocessor/draw.py,sha256=5LsV2L5vSmpDZIo7dMIYsOFEQB5jtVesKcmfxCTbsxk,46113
|
|
19
19
|
voxcity/geoprocessor/grid.py,sha256=D4sqoIGK2P1U8uuVQZ-447SD0Yrv6qS_zlmDtKoLDe8,71257
|
|
20
20
|
voxcity/geoprocessor/mesh.py,sha256=A7uaCMWfm82KEoYPfQYpxv6xMtQKaU2PBVDfKTpngqg,32027
|
|
21
21
|
voxcity/geoprocessor/network.py,sha256=YynqR0nq_NUra_cQ3Z_56KxfRia1b6-hIzGCj3QT-wE,25137
|
|
@@ -28,10 +28,10 @@ voxcity/simulator/view.py,sha256=k3FoS6gsibR-eDrTHJivJSQfvN3Tg8R8eSTeMqd9ans,939
|
|
|
28
28
|
voxcity/utils/__init__.py,sha256=Q-NYCqYnAAaF80KuNwpqIjbE7Ec3Gr4y_khMLIMhJrg,68
|
|
29
29
|
voxcity/utils/lc.py,sha256=722Gz3lPbgAp0mmTZ-g-QKBbAnbxrcgaYwb1sa7q8Sk,16189
|
|
30
30
|
voxcity/utils/material.py,sha256=H8K8Lq4wBL6dQtgj7esUW2U6wLCOTeOtelkTDJoRgMo,10007
|
|
31
|
-
voxcity/utils/visualization.py,sha256=
|
|
31
|
+
voxcity/utils/visualization.py,sha256=TQKMmATpAqSDTPMvMi1a-n2CvvzE2KcYVsss7iiShS4,116877
|
|
32
32
|
voxcity/utils/weather.py,sha256=2Jtg-rIVJcsTtiKE-KuDnhIqS1-MSS16_zFRzj6zmu4,36435
|
|
33
|
-
voxcity-0.6.
|
|
34
|
-
voxcity-0.6.
|
|
35
|
-
voxcity-0.6.
|
|
36
|
-
voxcity-0.6.
|
|
37
|
-
voxcity-0.6.
|
|
33
|
+
voxcity-0.6.12.dist-info/AUTHORS.rst,sha256=m82vkI5QokEGdcHof2OxK39lf81w1P58kG9ZNNAKS9U,175
|
|
34
|
+
voxcity-0.6.12.dist-info/LICENSE,sha256=s_jE1Df1nTPL4A_5GCGic5Zwex0CVaPKcAmSilxJPPE,1089
|
|
35
|
+
voxcity-0.6.12.dist-info/METADATA,sha256=ccDjxA6M8K0knd5zm_BN_fPUtayqf6a_-4PfaAa4sh0,26092
|
|
36
|
+
voxcity-0.6.12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
37
|
+
voxcity-0.6.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|