Skip to content

Commit

Permalink
[Surface/Poisson4] Always update counter and prevent overflow access …
Browse files Browse the repository at this point in the history
…in poisson4 octree (#4316)
  • Loading branch information
shauidu committed Sep 7, 2020
1 parent ff9adcf commit b9d9f56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -812,6 +812,7 @@ namespace pcl
normal[0] = (*input_)[cnt].normal_x;
normal[1] = (*input_)[cnt].normal_y;
normal[2] = (*input_)[cnt].normal_z;
cnt++;

for( i=0 ; i<DIMENSION ; i++ ) position[i] = ( position[i]-center[i] ) / scale;
myCenter[0] = myCenter[1] = myCenter[2] = Real(0.5);
Expand All @@ -838,7 +839,6 @@ namespace pcl
d++;
}
NonLinearUpdateWeightContribution( temp , position , weight );
cnt++;
}
}

Expand Down

0 comments on commit b9d9f56

Please sign in to comment.