node-stl-to-thumbnail
Create thumbnail from 3D STL file. Creates beautifully rendered png and jpeg output server-side with no GPU from ASCII and Binary STL's.
This code is forked from
node-stl-to-thumbnail
by instructables but I cannot found it in Github anymore.
Installation
npm install --save node-stl-to-thumbnail
Usage
The following snippet loads a file from the current directory (./input.stl
), and creates a 500x500 png thumbnail in the current directory called ./output.png
.
var StlThumbnailer = ;var fs = ; var thumbnailer = filePath: __dirname + "/input.stl" requestThumbnails: width: 500 height: 500
Help needed
To be honest, I am not fully understand this. Need help on:
- Camera setting, so that can get view from any perspective I want
- Render setting so that it look beautiful. If you see Three.js website the 3D item are so beautiful
- Update to use latest JavaScript ( ES2015++ )
Thanks / Credit
Thanks for Digital Data Sdn Bhd (currently working company) for supporting me and open source.