Fix for arrange crash when geometry has zero length segments
fixes #5749
This commit is contained in:
parent
1e69e6def1
commit
64ec319017
@ -220,7 +220,9 @@ inline NfpResult<RawShape> nfpConvexOnly(const RawShape& sh,
|
||||
auto next = std::next(first);
|
||||
|
||||
while(next != sl::cend(sh)) {
|
||||
if (pl::magnsq(*next - *first) > 0)
|
||||
edgelist.emplace_back(*(first), *(next));
|
||||
|
||||
++first; ++next;
|
||||
}
|
||||
}
|
||||
@ -230,7 +232,9 @@ inline NfpResult<RawShape> nfpConvexOnly(const RawShape& sh,
|
||||
auto next = std::next(first);
|
||||
|
||||
while(next != sl::cend(other)) {
|
||||
if (pl::magnsq(*next - *first) > 0)
|
||||
edgelist.emplace_back(*(next), *(first));
|
||||
|
||||
++first; ++next;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user