Skip to content
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

Closed

Conversation

lordofhyphens
Copy link
Member

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.

@@ -662,7 +662,7 @@ PrintObject::_make_perimeters()
this->typed_slices = false;
this->state.invalidate(posPrepareInfill);
}

std::cerr << "Done merging slices" << std::endl;
Copy link
Member

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;
Copy link
Member

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.

@lordofhyphens
Copy link
Member Author

lordofhyphens commented Dec 16, 2016 via email

@alranel
Copy link
Member

alranel commented Dec 16, 2016

I fixed this directly, quicker... But gave you credits in the message ;)

@alranel alranel closed this Dec 16, 2016
@lordofhyphens lordofhyphens deleted the 3613-consider-perimeters branch January 25, 2017 03:54
bubnikv added a commit to prusa3d/PrusaSlicer that referenced this pull request Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants