-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extra perimeters detection includes extra perimeters. #3614
Extra perimeters detection includes extra perimeters. #3614
Conversation
@@ -662,7 +662,7 @@ PrintObject::_make_perimeters() | |||
this->typed_slices = false; | |||
this->state.invalidate(posPrepareInfill); | |||
} | |||
|
|||
std::cerr << "Done merging slices" << std::endl; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops ;)
for (Surfaces::iterator slice = layerm.slices.surfaces.begin(); | ||
slice != layerm.slices.surfaces.end(); ++slice) { | ||
while (true) { | ||
// compute the total thickness of perimeters | ||
const coord_t perimeters_thickness = ext_perimeter_width/2 + ext_perimeter_spacing/2 | ||
+ (region.config.perimeters-1 + region.config.extra_perimeters) * perimeter_spacing; | ||
+ (region.config.perimeters-1 + region.config.extra_perimeters + slice->extra_perimeters) * perimeter_spacing; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that's right!
And I clearly see my error at porting time: region.config.extra_perimeters
is a boolean: it should not be summed in that expression! I wrote region.config.extra_perimeters
instead of slice->extra_perimeters
.
Oops indeed. I am away from my computers until probably Sunday or Monday;
you should have access though to change the commit yourself, or fix it
separately and close this :).
…On Dec 16, 2016 3:15 PM, "Alessandro Ranellucci" ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In xs/src/libslic3r/PrintObject.cpp
<#3614 (review)>:
> @@ -662,7 +662,7 @@ PrintObject::_make_perimeters()
this->typed_slices = false;
this->state.invalidate(posPrepareInfill);
}
-
+ std::cerr << "Done merging slices" << std::endl;
whoops ;)
------------------------------
In xs/src/libslic3r/PrintObject.cpp
<#3614 (review)>:
> for (Surfaces::iterator slice = layerm.slices.surfaces.begin();
slice != layerm.slices.surfaces.end(); ++slice) {
while (true) {
// compute the total thickness of perimeters
const coord_t perimeters_thickness = ext_perimeter_width/2 + ext_perimeter_spacing/2
- + (region.config.perimeters-1 + region.config.extra_perimeters) * perimeter_spacing;
+ + (region.config.perimeters-1 + region.config.extra_perimeters + slice->extra_perimeters) * perimeter_spacing;
Oh, that's right!
And I clearly see my error at porting time: region.config.extra_perimeters
is a boolean: it should not be summed in that expression! I wrote
region.config.extra_perimeters instead of slice->extra_perimeters.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#3614 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAB8CoacCMg_gKLgNUgSf7A2ZvDb4FtKks5rIv9ggaJpZM4LLTGI>
.
|
I fixed this directly, quicker... But gave you credits in the message ;) |
Fixed by @alexr slic3r/Slic3r@8f0d8f2 See also slic3r/Slic3r#3613 slic3r/Slic3r#3614
Fixes #3613
Would appreciate it if @bubnikv or @alexrj would check the one-line edit to see if I'm missing something critical about the extra perimeter detection.