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;
|
||||
//};
|
||||
|
||||
//int count = 0;
|
||||
//std::vector<double> ret = profile;
|
||||
//bool has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
||||
//while (has_steep_change && count < 6) {
|
||||
// ret = gauss_blur(ret, smoothing_params);
|
||||
// has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
||||
// count++;
|
||||
//}
|
||||
//return ret;
|
||||
return gauss_blur(profile, smoothing_params);
|
||||
int count = 0;
|
||||
std::vector<double> ret = profile;
|
||||
// bool has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
||||
while (/*has_steep_change &&*/ count < 6) {
|
||||
ret = gauss_blur(ret, smoothing_params);
|
||||
//has_steep_change = has_steep_height_change(ret, LAYER_HEIGHT_CHANGE_STEP);
|
||||
count++;
|
||||
}
|
||||
return ret;
|
||||
// return gauss_blur(profile, smoothing_params);
|
||||
}
|
||||
|
||||
void adjust_layer_height_profile(
|
||||
|
|
Loading…
Reference in New Issue