mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-08-22 21:30:43 +02:00
20 lines
338 B
JavaScript
Executable File
20 lines
338 B
JavaScript
Executable File
importScripts( "lzma.js", "ctm.js" );
|
|
|
|
self.onmessage = function( event ) {
|
|
|
|
var files = [];
|
|
|
|
for ( var i = 0; i < event.data.offsets.length; i ++ ) {
|
|
|
|
var stream = new CTM.Stream( event.data.data );
|
|
stream.offset = event.data.offsets[ i ];
|
|
|
|
files[ i ] = new CTM.File( stream );
|
|
|
|
}
|
|
|
|
self.postMessage( files );
|
|
self.close();
|
|
|
|
}
|