Update CCAutoPolygon.cpp (#1201)

Removed "nonsens" code
This commit is contained in:
aismann 2023-05-08 00:17:38 +02:00 committed by GitHub
parent d13d11f51c
commit f54836160e
1 changed files with 0 additions and 6 deletions

View File

@ -524,12 +524,6 @@ std::vector<Vec2> AutoPolygon::expand(const std::vector<Vec2>& points, const ax:
result.emplace_back(Clipper2Lib::Point64(pt.x * PRECISION, pt.y * PRECISION));
}
if (!Clipper2Lib::IsPositive(result))
{
log("AUTOPOLYGON: cannot expand points for %s detect a hole!, e: %f", _filename.c_str(), epsilon);
return std::vector<Vec2>();
}
Clipper2Lib::ClipperOffset co;
co.AddPath(result, Clipper2Lib::JoinType::Miter, Clipper2Lib::EndType::Polygon);
co.Execute(epsilon * PRECISION, solution);