ENH: reduce organic tree support log level
jira: none Change-Id: I17b876d88974e632c592bd36f3fea700a51f86be
This commit is contained in:
parent
0d1bdab97d
commit
97de4e87cf
|
@ -33,7 +33,7 @@ using namespace std::literals;
|
||||||
|
|
||||||
// or warning
|
// or warning
|
||||||
// had to use a define beacuse the macro processing inside macro BOOST_LOG_TRIVIAL()
|
// had to use a define beacuse the macro processing inside macro BOOST_LOG_TRIVIAL()
|
||||||
#define error_level_not_in_cache error
|
#define error_level_not_in_cache debug
|
||||||
|
|
||||||
//FIXME Machine border is currently ignored.
|
//FIXME Machine border is currently ignored.
|
||||||
static Polygons calculateMachineBorderCollision(Polygon machine_border)
|
static Polygons calculateMachineBorderCollision(Polygon machine_border)
|
||||||
|
|
|
@ -792,7 +792,7 @@ static std::optional<std::pair<Point, size_t>> polyline_sample_next_point_at_dis
|
||||||
if (distance == 0)
|
if (distance == 0)
|
||||||
return do_final_difference ? diff(ret, collision_trimmed()) : union_(ret);
|
return do_final_difference ? diff(ret, collision_trimmed()) : union_(ret);
|
||||||
if (safe_step_size < 0 || last_step_offset_without_check < 0) {
|
if (safe_step_size < 0 || last_step_offset_without_check < 0) {
|
||||||
BOOST_LOG_TRIVIAL(error) << "Offset increase got invalid parameter!";
|
BOOST_LOG_TRIVIAL(warning) << "Offset increase got invalid parameter!";
|
||||||
tree_supports_show_error("Negative offset distance... How did you manage this ?"sv, true);
|
tree_supports_show_error("Negative offset distance... How did you manage this ?"sv, true);
|
||||||
return do_final_difference ? diff(ret, collision_trimmed()) : union_(ret);
|
return do_final_difference ? diff(ret, collision_trimmed()) : union_(ret);
|
||||||
}
|
}
|
||||||
|
@ -1686,7 +1686,7 @@ static Point move_inside_if_outside(const Polygons &polygons, Point from, int di
|
||||||
));
|
));
|
||||||
check_layer_data = current_elem.to_buildplate ? to_bp_data : to_model_data;
|
check_layer_data = current_elem.to_buildplate ? to_bp_data : to_model_data;
|
||||||
if (area(check_layer_data) < tiny_area_threshold) {
|
if (area(check_layer_data) < tiny_area_threshold) {
|
||||||
BOOST_LOG_TRIVIAL(error) << "Lost area by doing catch up from " << ceil_radius_before << " to radius " <<
|
BOOST_LOG_TRIVIAL(debug) << "Lost area by doing catch up from " << ceil_radius_before << " to radius " <<
|
||||||
volumes.ceilRadius(support_element_collision_radius(config, current_elem), settings.use_min_distance);
|
volumes.ceilRadius(support_element_collision_radius(config, current_elem), settings.use_min_distance);
|
||||||
tree_supports_show_error("Area lost catching up radius. May not cause visible malformation."sv, true);
|
tree_supports_show_error("Area lost catching up radius. May not cause visible malformation."sv, true);
|
||||||
}
|
}
|
||||||
|
@ -1983,7 +1983,7 @@ static void increase_areas_one_layer(
|
||||||
<< "Trying to keep area by moving faster than intended: Success";
|
<< "Trying to keep area by moving faster than intended: Success";
|
||||||
break;
|
break;
|
||||||
} else if (!settings.no_error)
|
} else if (!settings.no_error)
|
||||||
BOOST_LOG_TRIVIAL(error) << "Trying to keep area by moving faster than intended: FAILURE! WRONG BRANCHES LIKLY!";
|
BOOST_LOG_TRIVIAL(warning) << "Trying to keep area by moving faster than intended: FAILURE! WRONG BRANCHES LIKLY!";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (add) {
|
if (add) {
|
||||||
|
@ -2447,7 +2447,7 @@ void create_layer_pathing(const TreeModelVolumes &volumes, const TreeSupportSett
|
||||||
return true;
|
return true;
|
||||||
if (elem.areas.to_bp_areas.empty() && elem.areas.to_model_areas.empty()) {
|
if (elem.areas.to_bp_areas.empty() && elem.areas.to_model_areas.empty()) {
|
||||||
if (area(elem.areas.influence_areas) < tiny_area_threshold) {
|
if (area(elem.areas.influence_areas) < tiny_area_threshold) {
|
||||||
BOOST_LOG_TRIVIAL(error) << "Insert Error of Influence area bypass on layer " << layer_idx - 1;
|
BOOST_LOG_TRIVIAL(warning) << "Insert Error of Influence area bypass on layer " << layer_idx - 1;
|
||||||
tree_supports_show_error("Insert error of area after bypassing merge.\n"sv, true);
|
tree_supports_show_error("Insert error of area after bypassing merge.\n"sv, true);
|
||||||
}
|
}
|
||||||
// Move the area to output.
|
// Move the area to output.
|
||||||
|
@ -2480,7 +2480,7 @@ void create_layer_pathing(const TreeModelVolumes &volumes, const TreeSupportSett
|
||||||
if (! elem.areas.influence_areas.empty()) {
|
if (! elem.areas.influence_areas.empty()) {
|
||||||
Polygons new_area = safe_union(elem.areas.influence_areas);
|
Polygons new_area = safe_union(elem.areas.influence_areas);
|
||||||
if (area(new_area) < tiny_area_threshold) {
|
if (area(new_area) < tiny_area_threshold) {
|
||||||
BOOST_LOG_TRIVIAL(error) << "Insert Error of Influence area on layer " << layer_idx - 1 << ". Origin of " << elem.parents.size() << " areas. Was to bp " << elem.state.to_buildplate;
|
BOOST_LOG_TRIVIAL(warning) << "Insert Error of Influence area on layer " << layer_idx - 1 << ". Origin of " << elem.parents.size() << " areas. Was to bp " << elem.state.to_buildplate;
|
||||||
tree_supports_show_error("Insert error of area after merge.\n"sv, true);
|
tree_supports_show_error("Insert error of area after merge.\n"sv, true);
|
||||||
}
|
}
|
||||||
this_layer.emplace_back(elem.state, std::move(elem.parents), std::move(new_area));
|
this_layer.emplace_back(elem.state, std::move(elem.parents), std::move(new_area));
|
||||||
|
@ -2509,7 +2509,7 @@ static void set_points_on_areas(const SupportElement &elem, SupportElements *lay
|
||||||
|
|
||||||
// Based on the branch center point of the current layer, the point on the next (further up) layer is calculated.
|
// Based on the branch center point of the current layer, the point on the next (further up) layer is calculated.
|
||||||
if (! elem.state.result_on_layer_is_set()) {
|
if (! elem.state.result_on_layer_is_set()) {
|
||||||
BOOST_LOG_TRIVIAL(error) << "Uninitialized support element";
|
BOOST_LOG_TRIVIAL(warning) << "Uninitialized support element";
|
||||||
tree_supports_show_error("Uninitialized support element. A branch may be missing.\n"sv, true);
|
tree_supports_show_error("Uninitialized support element. A branch may be missing.\n"sv, true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -2677,7 +2677,8 @@ void create_nodes_from_area(
|
||||||
if (! elem.state.result_on_layer_is_set()) {
|
if (! elem.state.result_on_layer_is_set()) {
|
||||||
if (elem.state.to_buildplate || (elem.state.distance_to_top < config.min_dtt_to_model && ! elem.state.supports_roof)) {
|
if (elem.state.to_buildplate || (elem.state.distance_to_top < config.min_dtt_to_model && ! elem.state.supports_roof)) {
|
||||||
if (elem.state.to_buildplate) {
|
if (elem.state.to_buildplate) {
|
||||||
BOOST_LOG_TRIVIAL(error) << "Uninitialized Influence area targeting " << elem.state.target_position.x() << "," << elem.state.target_position.y() << ") "
|
BOOST_LOG_TRIVIAL(warning) << "Uninitialized Influence area targeting " << elem.state.target_position.x() << "," << elem.state.target_position.y()
|
||||||
|
<< ") "
|
||||||
"at target_height: " << elem.state.target_height << " layer: " << layer_idx;
|
"at target_height: " << elem.state.target_height << " layer: " << layer_idx;
|
||||||
tree_supports_show_error("Uninitialized support element! A branch could be missing or exist partially."sv, true);
|
tree_supports_show_error("Uninitialized support element! A branch could be missing or exist partially."sv, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue