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

Concentric pattern not always concentric #700

Closed
OhmEye opened this issue Sep 14, 2012 · 9 comments
Closed

Concentric pattern not always concentric #700

OhmEye opened this issue Sep 14, 2012 · 9 comments
Labels

Comments

@OhmEye
Copy link

OhmEye commented Sep 14, 2012

On a circular layer, concentric fill used to produce concentric circles for the entire layer. I recently discovered that recent versions no longer do. I did a git bisect and found that the commit that introduced the change was 44c636a

Screenshots for test object https://github.com/OhmEye/Temp/blob/master/record_45.stl

Good concentric produced with commit 20229fc
Good concentric pattern

Bad concentric produced with commit 44c636a
Bad concentric pattern

@cwarner711
Copy link

I have also encountered some strange behavior with the concentric fill pattern. Using the same *.stl file, when I change parameters like layer width layer height, or even more confusingly, brim width, I get a distorted pattern. Here is the pattern I would like to achieve:

http://farm9.staticflickr.com/8306/7993829241_4df31537a7_m.jpg

And this is the distorted pattern:

http://farm9.staticflickr.com/8303/7993829383_369e160257_m.jpg

(How does one import images into a thread?)

I am also having problems with getting complete fill with this pattern- I come close when over-stuffing the first layer, but still have some small gaps. The gaps always appear at the same position in the pattern, independent of where on the print bed I print the object, and appear to be related to how the geometry is sliced. Especially puzzling is why changing the brim width would distort the fill pattern...

@mesheldrake
Copy link
Collaborator

The problem seems to be with passing too small of a scale to Geometry::Clipper::offset()
Most of the time it looks like the scale being passed in is 1. That's too low for Clipper to have enough precision to clean up the artifacts of it's offset approach.
I hardcoded the scale for offset() to a few different values and got clean concentric paths on OhmEye's test case at scale=100.

concentric test at different offset scales

markspace pushed a commit to markspace/Slic3r that referenced this issue Sep 22, 2012
A default scale of 1 was being calculated most of the time. That's too
low to avoid artifacts from offsetting concave curves. Setting scale to
a default of 100000 eliminates artifacts in the test cases in issues
slic3r#700, slic3r#702 and slic3r#703. There is a risk of large point proliferation with
this scale in combination with the JT_ROUND option, but in the four
places where that option is used, scale is already explicitly set to a
safer low value.
@alranel
Copy link
Member

alranel commented Dec 23, 2012

@OhmEye, can you confirm this is gone too?

@cwarner711
Copy link

I can not figure out how to change the Geometry::Clipper::Ofset. Any
guidlines, or has this been picked up in the latest release?

Charlie

On Sun, Dec 23, 2012 at 4:10 AM, Alessandro Ranellucci <
notifications@github.com> wrote:

@OhmEye https://github.com/OhmEye, can you confirm this is gone too?


Reply to this email directly or view it on GitHubhttps://github.com//issues/700#issuecomment-11644304.

@mesheldrake
Copy link
Collaborator

@cwarner711 - this was a setting in the code, not a user setting, and it's been set to good high values in recent releases.

@cwarner711
Copy link

OK. I just recently downloaded 0.9.7, but haven't started using it yet (I
don't like to change things in the middle of a project). I am still using
0.9.3, and will not be ready to change for a week or so. I would suggest
you mark my original issue as "solved", and if I have further issues when I
switch to 0.9.7, I will create a new issue.

Charlie

On Tue, Jan 1, 2013 at 7:52 PM, Mike Sheldrake notifications@github.comwrote:

@cwarner711 https://github.com/cwarner711 - this was a setting in the
code, not a user setting, and it's been set to good high values in recent
releases.


Reply to this email directly or view it on GitHubhttps://github.com//issues/700#issuecomment-11798219.

@OhmEye
Copy link
Author

OhmEye commented Jan 2, 2013

I'm not ignoring this, just haven't had time yet to retest and confirm. I'll do when I can and report back. :)

@OhmEye
Copy link
Author

OhmEye commented Jan 16, 2013

I tried to do a quick test using the test object but got an error trying to add it. It will likely be a few days before I have time to look at this again.

Use of uninitialized value in subtraction (-) at /in/Slic3r/lib/Slic3r/Geometry.pm line 736.

Never mind, it was a corrupted copy of the STL. I redownloaded and with current git master am unable to reproduce this issue now so it looks fixed to me.

@mesheldrake
Copy link
Collaborator

Thanks for squeezing in that confirmation test.

@alranel alranel closed this as completed Mar 24, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants