It looks like this was a thing via a tool called ‘keneric’ long ago but I doubt it works anymore, any advice?
You can try the steps of the guide GitHub - MLAB-project/stl-thumbnailer: Shows thumbnails of STL files in Nautilus file browser , this is compatible with Dolphin.