ENH: smooth 6 times by 1 click of "smooth" button
In adaptive layer height, smoothing 1 time is not usable. There'll be layer lines at the layer height change boundaries. Change-Id: I84a8b69744db4936062d631864836f0a8cd99cf6 (cherry picked from commit ca77408f38c9a57bee4ab8ee4989024f7f105317)
This commit is contained in:
parent
4e15942ba8
commit
faeb95d59d
|
@ -428,16 +428,16 @@ std::vector<double> smooth_height_profile(const std::vector<double>& profile, co
|
||||||
// return false;
|
// return false;
|
||||||
//};
|
//};
|
||||||
|
|
||||||
//int count = 0;
|
int count = 0;
|
||||||
//std::vector<double> ret = profile;
|
std::vector<double> ret = profile;
|
||||||
// bool has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
// bool has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
||||||
//while (has_steep_change && count < 6) {
|
while (/*has_steep_change &&*/ count < 6) {
|
||||||
// ret = gauss_blur(ret, smoothing_params);
|
ret = gauss_blur(ret, smoothing_params);
|
||||||
//has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
//has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
||||||
// count++;
|
count++;
|
||||||
//}
|
}
|
||||||
//return ret;
|
return ret;
|
||||||
return gauss_blur(profile, smoothing_params);
|
// return gauss_blur(profile, smoothing_params);
|
||||||
}
|
}
|
||||||
|
|
||||||
void adjust_layer_height_profile(
|
void adjust_layer_height_profile(
|
||||||
|
|
Loading…
Reference in New Issue