Fix crash with a single support point
This commit is contained in:
parent
d23f9d7674
commit
f90d62c771
1 changed files with 2 additions and 1 deletions
|
@ -498,7 +498,8 @@ std::vector<size_t> non_duplicate_suppt_indices(const PtIndex &index,
|
||||||
!to_remove[i_closest];
|
!to_remove[i_closest];
|
||||||
});
|
});
|
||||||
|
|
||||||
if ((suppts[i].pos - suppts[closest_idx].pos).norm() < eps)
|
if (closest_idx < suppts.size() &&
|
||||||
|
(suppts[i].pos - suppts[closest_idx].pos).norm() < eps)
|
||||||
to_remove[i] = true;
|
to_remove[i] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue