unlimitedbacon / stl-thumb

Thumbnail generator for STL files
MIT License
1.13k stars 97 forks source link

Feature Request: Bulk Generation #61

Open J0nnyI opened 2 years ago

J0nnyI commented 2 years ago

is it possible to add bulk generation support in any kind of format? The parameters would have to be set per object and I would need one screenshot per file.

I have no requirements on my side regarding the type of parameter passing, except we are talking about a possibly larger set of images (10+). Possible solutions might be a file (the path of which might be passed as cmd parameter) or TCP port (which is probably overkill) It's probably unfeasible to pass the files as CMD parameters, since it would become too long (max path limit)

This feature is only required if batching the files creates a noticeable performance improvement (10%+) so you might want to check if this condition is met via a quick spike before you invest time in a proper implementation.

SideNote: I hope this request does not come across as too demanding, I have a bit of a problem with controlling the tone of this request since I am not a native speaker. Your work is greatly appreciated, using your project as is to generate thumbnails increased the Performance of my App by 11 times (6M33S to 30S for 56 Thumbnails), which is simply impossible to improve otherwise in Wpf without talking directly to the OpenGL or other native rendering engines, which is far outside of my expertise.

edit: maybe providing the app as .dll would be the best option? (if it isn't already done). C# seems to be at least compatible with Rust to the degree, that one can call rsut methods. This seems to be the least effort for the most value. And for the completion check a simple check if the output file has been written might be enough. if the call is synchronous it might not even be neccessary.