-
Notifications
You must be signed in to change notification settings - Fork 998
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
Projectlayer: Some maintenance and improvement #1387
Conversation
|
Hi @rockstorm101 , @neofelis2X , Unfortunately I don't have access to this kind of printer for testing too. I only corrected the errors in the code that came with the switch from 1.x to 2.x back then and build a test file for testing (#1360) the program in general. Anyway, I think replacing cairosvc with wx.svg is a good idea. Adjusting the windows build actions and releasewindows.bat is no problem. I can do that this weekend. |
Hi again,
I attach the screenshots and test file for my test below. Slic3r version was Slic3r-master.2020.08.24 |
Hello,
Maybe it happens randomly because as soon as you hover over the 3D OpenGL panel of the main GUI, the focus jumps to this window? This is a known bug (windows) and I am working on it in another branch. We could make the layer projector a modal dialogue that always stays on top. I will have a look.
Yes that is a problem with all of the panels (Platers etc.) and I already have a solution for it in my next PR. That PR is a bit bigger, already complete, but I'm still testing it. So I would not change it here now.
The grid should scale too? I thought the models scale and the grid always has 10x10 mm squares. Which ideally can be measured as pyhsical 10 mm on the display. I am going to give some thought to the whole resolution - dpi - millimetre pipeline. At the moment I'm confused about the difference between model size (mm) and display size (mm) Have a nice day! |
Hi @neofelis2X To 1.: This is solved now. I like this behavior. I did a test and found a little glitch (sorry): Regarding Slic3R, there seems to be indeed something wrong with z. Need to look if I have somewhere an older version. |
@neofelis2X, I update my example |
Hi @DivingDuck , thank you for looking at it again!
Ooh interesting, I overlooked that too. Yes, the new file works well. |
Hi @neofelis2X, What do you think, should we implement the changes now or is there anything you want to improve? From my side there is nothing what is against it and I will approve it too. Guess, @rockstorm101 is as well happy with the great work you did. There are maybe two future feature requests from my side:
|
Hello @DivingDuck, @rockstorm101 |
@rockstorm101, I will made the changes regarding the switch from cariosvg to wx.svg for Windows build actions and release_windows.bat as soon as this request is implemented. |
All good then! Thank you very much to both. Great effort! |
…n.svg. cairosvg, cffi and cairocffi not longer needed for projectlayer.py and became obsolete.
Hello. A while ago I spent some time on the Projectlayer module. The more I work on it, the more I realise how incomplete and buggy it is. I think I've fixed some of the problems, but it is far from being a useable feature.
Projectlayer has been renamed to Layer Projector. Makes more sense to me.
Changed the way files are loaded and made sure all supported file formats work as expected. Now only layered .svg files can be loaded, normal .svgs are rejected. This fixes Projector: TypeError on loading SVG #1360
The Layer Projector can now load Prusaslicer SL1 and SL1S files! If you want to try it, you probably have to use a 'Scale' of 0.6 or so, because they have a higher resolution. One of the examples I used was this file:
https://www.printables.com/model/297351-m3-nut-for-2020-5mm-profile/files
Closing one of the two windows now closes the other as well.
Perhaps the most important change: cairosvg has been replaced by wx.svg, which already comes with wxpython. This saves the extra dependency on that library. After comparing the output of the two libraries, I can confirm that wx.svg produces pixel-perfect the same result as cairosvg.
Tested on python win 3.10, mac 3.11 and 3.7.9.