Sometimes PrusaSlicer randomly ignores a hole in my models. Anyone know how to fix this?

Sometimes PrusaSlicer randomly ignores a hole in my models. Anyone know how to fix this?

Posted May 14, 2021, 4:43 PM UTC

9727
mix579•

99% sure it's an error in the model. Run it through Netfabb, Blender, etc to fix it.

35
Sleepybear842•

I've had this same thing happen and running it through NetFab via PrusaSlicer fixed it. I've also had PS just ignore a full layer and leave a gap.

12
bassackwardslefty•

Had an empty layer error last night while slicing a model when using 20mmSpeed. Changed to 30mm and resliced and it fixed it. Was curious, so sliced with 20mmQuality and it was fine there as well. NetFab didn't fix it in my case.

3
jurassic73•

When I've had issues like this it was something odd with the model that I created in fusion 360. Usually when I was mucking with surfaces incorrectly.

1
Lexons•

I wonder what happens if you export the model from PrusaSlicer as a STL and try to import that STL again? (I guess it's something with the STL, maybe try Cura as well?)

29
thockinatorOP•

Huh, exporting and importing again with the slicer works.

Seems like a subtle issue with the STL that only causes weird problems in some edge cases...for example slicing the same STL but upright works fine.

24
MultiplyAccumulate•

A quick way to clean up common minor issues with STL files is to use admesh:

admesh --write-binary-stl=fixed.stl broken.stl

Admesh runs on linux or other un*x like operating systems. You can run it under windows subsystem for linux OR download a windows binary of an older version (0.9.83); click on "Releases" in the right hand side panel. There is also a GUI available.

https://github.com/admesh/admesh

https://github.com/admesh/ADMeshGUI

sudo apt-get install admesh

Admesh is helpful before import("myfile.stl"); in OpenSCAD as openscad doesn't like broken meshes.

Meshlab can do more complicated processing of meshes. Once you have a sequence of tools you want to use, they can be incorporated in a meshlab script. That script can also be called from the commandline, if desired, using meshlabserver.

Both are free, open-source, cross-platform. Meshlab is packaged for chocolatey but admesh is not.

13
KrishanuAR•

Prusa slicer also lets you right click an stl and it will send it to netfabb for corrections. That is probably a much simpler workflow.

4
kris2340•

I think prusa uses the embedded fix mesh or something (on part right click) on every export
Is that one with issues uploaded anywhere, I have a few mesh tools installed and can take a quick spin

1
btodoroff•

My guess is you cut the hex with tool that is aligned with the top surface. Due to slight floating point mismatch, it left a "skin" 0.000000001 thick over the hex. Always ensure cutting tool is slightly proud of the surface.

18
thockinatorOP•

It is not flush/aligned with the top surface, I cut all 4 holes using the exact same parameters, with the hexagonal shape clearly larger than the hole. I made designs where holes were flush and they sliced perfectly, and I've used this exact hexagonal module dozens of times without problem.

It does seem to be a subtle issue in the STL as re-exporting it with the PrusaSlicer fixes it, but I don't know enough details about those file formats to figure out more. On the other hand the "Repair STL" option (which exports as .obj) does nothing.

6
einstienbc•

I've experienced missing geometry before because the surfaces were flipped inside out. Not sure if that's the problem here, but it's an idea.

4
snarfattack•

Maybe use Microsoft 3D builder to repair the STL before bringing it into the slicer.

4
Doc_exe•

That is my go to before printing any stl. Open it in 3d builder in Windows and have it work its magic.

1

Seems like the model isnt watertight and slicer trys to "repair" it

3
thockinatorOP•

A bit more info:

  • happens both with PrusaSlicer 2.2.0 and 2.3.1
  • stl exported from OpenSCAD
  • the lower, round part of the hole gets sliced, but the part for the m4 nut is just...gone
1
shawkes•

I read openscad and wasn't surprised.

The hexagon and cylinder cuts for the nut.. are the cutting tool objects flush with the main object?

I find that it's better to ha e the cutting tool be proud of the surface I'm cutting.

8
thockinatorOP•

No, I always avoid having subtracted shapes flush with the other object, as that causes glitches in the preview from the overlapping surfaces.

As I mentioned in the other comment I managed to get rid of it by reexporting and -importing it using the slicer. It's a very rare issue that even depends on the orientation on the print bed, so I had no idea what the cause was. The fact that it always happened with this one of four identical holes made it even weirder.

3
Gerstacker•

This situation can sneak up on you and be hard to track down. In a complicated model with lots of modules, facets from two parts of the model that are completely unrelated semantically can end up coincident and cause a failure that isn't apparent until slicing. I've also done the safe bump-up-by-eps within a module, only to have it canceled out by the safe bump-down-by-eps applied to the output of the module.

Edit: I just thought of a strategy for the second issue. Have every module take an eps argument, and every time you call a module pass it half of your current eps. A little onerous but not too bad.

5
sinembarg0•

eps?

2
thockinatorOP•

So I just tested a bit more and I think I figured it out: I managed to design the object with the exact set of parameters that leads to a weirdly behaved floating-point calculation in OpenSCAD, and when I then rotate the object(and thus all coordinates) in PrusaSlicer to align it with the print bed it causes a weird bug.

I can literally make the issue disappear by rotating the model in OpenSCAD before the export, or by just moving it to different coordinates in the 3D scene.

1
kryvian•

Check geometry.

1

I had that happen once when I exported a component from fusion 360 to stl. I think depending on how the hole was created the inside cylinder is treaded as a kind of "invisible sub body" of the component you are modeling. And when it's converted to stl or while importing into slicer the invisible body is being read as a solid body and combined with your model. Try the "separate into pieces" option in prusa slicer and see if where the hole should be an cylindrical body appears.

1
rickyh7•

Right click your model in prusaslicer, select fix through netfabb, wait like 5 minutes it’s kinda slow, then re-slice! Should fix whatever error it is that prusaslicer is fixing incorrectly

1
kosteklvp•

It’s a feature

0