ENH:remove warning of "too close to others"

Jira: STUDIO-6394
Change-Id: Ic2858ad328f36219a47f87c534ae0fd4d15c0b0c
This commit is contained in:
zhou.xu 2024-03-01 11:28:04 +08:00 committed by Lane.Wei
parent a6e9ffc131
commit 50a3757e61

View File

@ -855,12 +855,12 @@ static StringObjectException layered_print_cleareance_valid(const Print &print,
Polygon& convex_hull = it_convex_hull->second;
Polygons convex_hulls_temp;
convex_hulls_temp.push_back(convex_hull);
if (!intersection(convex_hulls_other, convex_hulls_temp).empty()) {
/*if (!intersection(convex_hulls_other, convex_hulls_temp).empty()) {
if (warning) {
warning->string = inst->model_instance->get_object()->name + L(" is too close to others, there may be collisions when printing.") + "\n";
warning->object = inst->model_instance->get_object();
}
}
}*/
if (!intersection(exclude_polys, convex_hull).empty()) {
return {inst->model_instance->get_object()->name + L(" is too close to exclusion area, there may be collisions when printing.") + "\n", inst->model_instance->get_object()};
/*if (warning) {