# parse-stl-binary

> STL binary parser

Latest version **1.0.1** (published 2015-04-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install parse-stl-binary
pnpm add parse-stl-binary
yarn add parse-stl-binary
bun add parse-stl-binary
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-04-07 |
| First published | 2015-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | thibauts |
| Maintainers | thibauts |
| Keywords | stl, binary, buffer, mesh, format |

## Links

- npm: https://www.npmjs.com/package/parse-stl-binary
- Repository: https://github.com/thibauts/parse-stl-binary
- Issues: https://github.com/thibauts/parse-stl-binary/issues
- npm.io page: https://npm.io/package/parse-stl-binary

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-04-07
- 1.0.0 — 2015-04-07

## README

parse-stl-binary
================
### STL binary parser

Parses an [STL](http://en.wikipedia.org/wiki/STL_%28file_format%29) (STereoLithography) binary buffer to a mesh compatible with [simplicial-complex](https://github.com/mikolalysenko/simplicial-complex). If you're looking for a streaming parser check [this](https://github.com/tmpvar/stl).

This module works well with [merge-vertices](https://github.com/thibauts/merge-vertices) to deduplicate identical vertices from different faces.

Install
-------

```bash
$ npm install parse-stl-binary
```

Usage
-----

```javascript
var parseSTL = require('parse-stl-binary');
var fs = require('fs');

var buf = fs.readFileSync('mesh.stl');
var mesh = parseSTL(buf);

console.log(mesh);
/*
{
  positions: [...],
  cells: [...],
  faceNormals: [...]
}
*/
```

---
_Source: https://npm.io/package/parse-stl-binary · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
