@laturge/simple-draco
v1.0.1
Published
Wrapper for Draco3D
Downloads
4
Readme
Simple Draco 3D
Wrapper for draco3d
Example
var data = {
indices: [0,1,2],
attributes:{
POSITION: [0,0,0, 1,0,0, 0,1,0]
}
};
var encodedBuffer = SimpleDraco.encodeData(data);
var decodedMesh = SimpleDraco.decodeBuffer(encodedBuffer);
var decodedData = SimpleDraco.meshToData(decodedMesh);