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.

@@ -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
- z_base = meshsize * int(dem_grid_flipped[x, y] / meshsize + 1.5) + z_offset
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 ]