From c85038918dedcafc7c342a6770a92cc302838643 Mon Sep 17 00:00:00 2001 From: Nicolas Pope <nwpope@utu.fi> Date: Sat, 22 Jun 2019 15:01:07 +0300 Subject: [PATCH] Fat surfaces --- applications/reconstruct/src/ray_cast_sdf.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/reconstruct/src/ray_cast_sdf.cu b/applications/reconstruct/src/ray_cast_sdf.cu index 4ad790dff..ee2c16a01 100644 --- a/applications/reconstruct/src/ray_cast_sdf.cu +++ b/applications/reconstruct/src/ray_cast_sdf.cu @@ -286,7 +286,7 @@ __global__ void nickRenderKernel(ftl::voxhash::HashData hashData, RayCastData ra bool is_surface = ((params.m_flags & kShowBlockBorders) && edgeX + edgeY + edgeZ >= 2); if (is_surface) voxels[j].color = make_uchar3(255,(vp.x == 0 && vp.y == 0 && vp.z == 0) ? 255 : 0,0); - if (!is_surface && voxels[j].sdf < 0.0f) return; + if (!is_surface && voxels[j].sdf >= 0.0f) return; //if (vp.z == 7) voxels[j].color = make_uchar3(0,255,(voxels[j].sdf < 0.0f) ? 255 : 0); -- GitLab