https://github.com/microjs/simplify-3d
simplify-3D is a high-performance JavaScript 3D polyline simplification library
https://github.com/microjs/simplify-3d
Last synced: about 1 year ago
JSON representation
simplify-3D is a high-performance JavaScript 3D polyline simplification library
- Host: GitHub
- URL: https://github.com/microjs/simplify-3d
- Owner: microjs
- Created: 2012-11-23T19:15:06.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-24T11:55:24.000Z (over 13 years ago)
- Last Synced: 2025-02-10T10:42:19.053Z (about 1 year ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
[](https://travis-ci.org/microjs/simplify-3D)
# simplify-3D
simplify-3D is a high-performance JavaScript 3D polyline simplification library.
If you need a 2D simplification library, check out [microjs/simplify-2D](https://github.com/microjs/simplify-2D).
## Installation
$ component install microjs/simplify-3D
$ npm install simplify-3d
## API
```javascript
var simplify = require('simplify-2D');
simplify(points, tolerance, highQuality)
```
Returns a simplified array of points
- `points` - An array of points in the format: `{x: Number, y: Number, z: number}`
- `tolerance` - Optional number (defaulting to 1) Affects the amount of simplification (in the same metric as the point coordinates).
- `highQuality` - Optional boolean (defaults to false) - Excludes distance-based preprocessing step which leads to higher quality but runs ~10-20 times slower.
## License
MIT