prusa3d / PrusaSlicer

G-code generator for 3D printers (RepRap, Makerbot, Ultimaker etc.)
https://www.prusa3d.com/prusaslicer/
GNU Affero General Public License v3.0
7.75k stars 1.93k forks source link

Feature reqeust: Add STEP support to Shape Gallery #9372

Open Sembazuru opened 1 year ago

Sembazuru commented 1 year ago

Is your feature request related to a problem? Please describe. Ever since PrusaSlicer started importing STEP files I've used that format between my CAD program (FreeCAD in my case) and PrusaSlicer. I recently created a shape that sliced and printed fine when loading the STEP file into PrusaSlicer. I want to put this shape into my Shape Gallery, but the add to gallery load window wouldn't show step files (only stl and obj). I tried to force the issue by copying the step file directly into the settings "shapes" folder, but no go. Looking at another stl file that I had imported into the shapes gallery I saw that a png thubnail had been created, so I created my own 256x256 resolution thumbnail in Gimp but the new shape still didn't show in the Shape Gallery. So I tried to fool the viewer and changed the extension of the step file from .step to .stl. Still no joy, it doesn't show in the Shape Gallery. (Note I did all the changes at the filesystem level with PrusaSlicer closed.)

Describe the solution you'd like Add step support to the Shape Gallery, either by converting to stl and storing that in the configuration "shapes" folder, or store the base step file in the configuration "shapes" folder and tessellate when loading the shape. If storing the raw step folder, offer a scaling window when loading the object from the Shape Gallery to help avoid the issue noted in https://github.com/prusa3d/PrusaSlicer/issues/9184

Describe how it would work When adding an object to the Shapes Gallery, step format is loaded just like stl and obj currently is.

Describe alternatives you've considered For now I'll convert to mesh in FreeCAD and store the stl in the Shapes Gallery.

Additional context Attached is the specific step object I'm trying to add to the Shapes Gallery (zipped because you haven't added STEP files to what this repository accepts for file attachments) just to make sure it isn't a weird STEP formatting issue from FreeCAD even though PrusaSlicer does load this file without issue: ForIndicationOnly-Extrude.zip

kubispe1 commented 1 year ago

Hi, .slt and .obj formats are supported for Gallery, as you observed. Thanks for the feature request