/pop-buffer

Progressive encoding for 3D meshes

Primary LanguageJavaScriptMIT LicenseMIT

pop-buffer

Progressive encoding for 3D meshes

Implements POP Buffers, as described here.

Install

$ npm install pop-buffer

Example

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 or

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