0.0.1 • Published 11 years ago

stl-obj-viewer v0.0.1

Weekly downloads
1
License
-
Repository
-
Last release
11 years ago

stl-obj-viewer

uses three.js to display a stl or obj file

NPM

api

var createViewer = require('stl-obj-viewer')

returns a function you can use to create a viewer instance

var viewer = createViewer(containerElement)

returns a new viewer and appends the empty canvas to the dom inside containerElement. containerElement has to be a valid dom element, otherwise it will use document.body.

viewer.readStl(stlStringOrBinary)

renders the stl to the viewer. calling this again will remove the old model and display the new one

viewer.readObj(objString)

renders the obj to the viewer. calling this again will remove the old model and display the new one

license

BSD

0.0.1

11 years ago

0.0.0

11 years ago