Skip to content

Commit

Permalink
Fix disconnected control point input voxels appearing in perimeter file
Browse files Browse the repository at this point in the history
  • Loading branch information
ofgulban committed Mar 14, 2022
1 parent c505112 commit 7365b03
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/LN2_MULTILATERATE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,11 @@ int main(int argc, char* argv[]) {
// Translate 0 crossing
for (uint32_t ii = 0; ii != nr_voi; ++ii) {
i = *(voi_id + ii);
*(flood_dist_data + i) -= thr_radius;
if (*(flood_dist_data + i) != 0) {
*(flood_dist_data + i) -= thr_radius;
} else { // These voxels are disconnected to centroid cluster
*(flood_dist_data + i) = 666;
}
}

// Mark voxels inside perimeter
Expand Down

0 comments on commit 7365b03

Please sign in to comment.