three-stl-loader

@aleeper's three.js stl-loader as a node module

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
three-stl-loader
1391.0.65 years ago6 years agoMinified + gzip package size for three-stl-loader in KB

Readme

three-stl-loader

@aleeper's THREE.STLLoader repackaged as a node module

install

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