three-stl-loader-igor-edition
v1.0.7
Published
@aleeper's three.js stl-loader as a node module
Downloads
12
Readme
three-stl-loader
@aleeper's THREE.STLLoader repackaged as a node module
install
npm i --save three
npm i --save three-stl-loader
usage
var THREE = require('three')
var STLLoader = require('three-stl-loader')(THREE)
var loader = new STLLoader()
loader.load('./path/to/daaaamn.stl', function (geometry) {
var material = new THREE.MeshNormalMaterial()
var mesh = new THREE.Mesh(geometry, material)
scene.add(mesh)
})