Skip to content

parse stl files with Node.js and get volume, surface area and weight

License

Notifications You must be signed in to change notification settings

s501936242/node-stl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-stl

Parse STL files with Node.js and get volume, weight,surface area and the bounding box. 用Node解析.stl文件,获取体积,重量,表面积和占用空间等数据。可以运行test.js快速开始。

example

var stl = NodeStl(__dirname + '/myCool.stl');
console.log(stl.volume + 'cm^3');     // 21cm^3
console.log(stl.weight + 'gm');       //  1gm
console.log(stl.boundingBox,'(mm)');  // [60,45,50] (mm)
console.log(stl.area,'(m)');          // 91.26 (m)

node-stl recognizes by itself whether it is dealing with an ASCII STL or a binary STL file

install

use npm:

$ npm install node-stl

license

MIT

Version

0.1.0

About

parse stl files with Node.js and get volume, surface area and weight

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%