unlimitedbacon / stl-thumb

Thumbnail generator for STL files
MIT License
1.02k stars 89 forks source link

[Feature request] Add STEP support #77

Open Nico04 opened 10 months ago

Nico04 commented 10 months ago

Would add STEP file support be a huge feature ? I know the project is called STL-Thumb, but STEP files are getter more and more popular, and I can't find any equivalent :)

demonlibra commented 10 months ago

You can use gmsh to convert step to stl. sudo apt install gmsh gmsh -v 0 "<path_input_step>" -0 -o "<path_output_stl>"

Also you can use minirender to create stl thumb.

Nico04 commented 10 months ago

I'm not looking to convert, I'm just looking to have STEP file preview on Windows ;)

rvmn commented 10 months ago

I'm not looking to convert, I'm just looking to have STEP file preview on Windows ;)

You could look for a F3D, that is a viewer that also does thumbnails and supports STEP files. Or if you know programming you could integrate TKSTEP, the OpenCascade toolkit that i think has made STEP open-source :), and integrate it into stl-thumb yourself (PrusaSlicer has used it now also, check their code)

Nico04 commented 10 months ago

Thanks for theses ideas. So despite of the project's name, you would be interested in a PR that adds STEP support ? EDIT : unfortunately I don't know RUST 😢

rvmn commented 10 months ago

Thanks for theses ideas. So despite of the project's name, you would be interested in a PR that adds STEP support ? EDIT : unfortunately I don't know RUST 😢

Hmm, if i wouldn't have my own stuff to work on i might :/ I do have an idea: if you, and others reading this fund me 60US (in total) I will donate that to the rainforest project i am supporting in it's totality (and post a link to the donation message in this issue afterwards) link i checked it out and i am quite certain it will be done in a couple of weekend hours, divided over 2 max 3 weeks.

Nico04 commented 9 months ago

Your link looks broken to me ? In any case, I can't justify to put 60$ personnaly in that feature, but I can put up to 10$, if the feature is planned ;)

unlimitedbacon commented 7 months ago

I would be open to a PR for STEP support. Hopefully it would not be too computationally expensive.