Skip to content

enspiral-cherubi/three-stl-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
})

Releases

No releases published

Packages

No packages published