voxcity 0.6.30__py3-none-any.whl → 0.6.32__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/geoprocessor/mesh.py +3 -1
- voxcity/utils/visualization.py +2906 -2906
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/METADATA +10 -5
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/RECORD +7 -7
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/WHEEL +0 -0
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/licenses/AUTHORS.rst +0 -0
- {voxcity-0.6.30.dist-info → voxcity-0.6.32.dist-info}/licenses/LICENSE +0 -0
voxcity/geoprocessor/mesh.py
CHANGED
|
@@ -318,7 +318,9 @@ def create_sim_surface_mesh(sim_grid, dem_grid,
|
|
|
318
318
|
if np.isnan(val):
|
|
319
319
|
continue
|
|
320
320
|
|
|
321
|
-
|
|
321
|
+
# Match voxel ground rounding: int(dem/mesh + 0.5) + 1 == int(dem/mesh + 1.5)
|
|
322
|
+
# Then lower the plane by one mesh layer as requested
|
|
323
|
+
z_base = meshsize * int(dem_grid_flipped[x, y] / meshsize + 1.5) + z_offset - meshsize
|
|
322
324
|
|
|
323
325
|
# 4 corners in (x,y)*meshsize
|
|
324
326
|
v0 = [ x * meshsize, y * meshsize, z_base ]
|