@nobleai/three-stl-loader

1.0.6 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @nobleai/three-stl-loader

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

13.7 kB

Total Files

5

Last publish

Collaborators

  • mloomis
  • alexmoutonnoble
  • cid8600