Skip to content

Commit 11bc514

Browse files
committed
fixes
1 parent cf2da61 commit 11bc514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

voxec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,12 @@ namespace {
430430
nz += PADDING * 2;
431431

432432
if (std::is_same<V, voxel_uint32_t>::value) {
433-
chunked_voxel_storage<voxel_uint32_t>* storage = new chunked_voxel_storage<voxel_uint32_t>(x1, y1, z1, d, nx, ny, nz, 64);
433+
chunked_voxel_storage<voxel_uint32_t>* storage = new chunked_voxel_storage<voxel_uint32_t>(x1, y1, z1, vsize, nx, ny, nz, 64);
434434
progress_writer progress("voxelize");
435435
processor pr(storage, progress);
436436
pr.use_scanline() = false;
437437
// @uint32 defaults to VOLUME_PRODUCT_ID
438-
pr.process(geoms.begin(), geoms.end(), VOLUME_PRODUCT_ID(), output(MERGED()));
438+
pr.process(surfaces->begin(), surfaces->end(), VOLUME_PRODUCT_ID(), output(MERGED()));
439439
return storage;
440440
} else {
441441
if (threads) {

0 commit comments

Comments
 (0)