Tiny optimization in RegionExpansion wave_seeds() for empty input

This commit is contained in:
Vojtech Bubnik 2023-04-11 10:21:55 +02:00
parent 23d74f453e
commit 5e5af56635

View File

@ -206,7 +206,7 @@ std::vector<WaveSeed> wave_seeds(
{
assert(tiny_expansion > 0);
if (src.empty())
if (src.empty() || boundary.empty())
return {};
using Intersection = ClipperZUtils::ClipperZIntersectionVisitor::Intersection;