Skip to content

Commit

Permalink
Merge pull request #2839 from DumDereDum:issue_2818
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jan 29, 2021
2 parents 327a1da + 4e60662 commit 5e8b651
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions modules/rgbd/src/tsdf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,11 @@ struct RaycastInvoker : ParallelLoopBody

// near clipping plane
const float clip = 0.f;
float tmin = max(v_reduce_max(minAx), clip);
float tmax = v_reduce_min(maxAx);
float _minAx[4], _maxAx[4];
v_store(_minAx, minAx);
v_store(_maxAx, maxAx);
float tmin = max( {_minAx[0], _minAx[1], _minAx[2], clip} );
float tmax = min( {_maxAx[0], _maxAx[1], _maxAx[2]} );

// precautions against getting coordinates out of bounds
tmin = tmin + tstep;
Expand Down

0 comments on commit 5e8b651

Please sign in to comment.