Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thibauts/pop-buffer

Progressive encoding for 3D meshes
https://github.com/thibauts/pop-buffer

Last synced: 3 months ago
JSON representation

Progressive encoding for 3D meshes

Awesome Lists containing this project

README

        

pop-buffer
==========
### Progressive encoding for 3D meshes

Implements POP Buffers, as described [here](http://x3dom.org/pop/files/popbuffer2013.pdf).

Install
-------

```bash
$ npm install pop-buffer
```

Example
-------

```javascript
var bunny = require('bunny');
var encode = require('pop-buffer').encode;
var decode = require('pop-buffer').decode;

var popBuffer = encode(bunny.cells, bunny.positions, 16);
var mesh = decode(popBuffer);
```

Demo
----

Check the [online demo](http://requirebin.com/?gist=538bb6f0da184e91c26a) or

```bash
$ git clone https://github.com/thibauts/pop-buffer.git
$ cd pop-buffer
$ npm install
$ npm run demo
```