Skip to content

Commit

Permalink
Merge pull request #11469 from andreyyudin/dev
Browse files Browse the repository at this point in the history
Fix of handling data for UInt32 VTP headers in VTKLoader
  • Loading branch information
mrdoob authored Jun 8, 2017
2 parents b45f9c5 + db2c935 commit 8c84da3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/js/loaders/VTKLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,8 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, {
for ( var i = 0; i<blocks; i++ ) {
var currentBlockSize = byteData[i*numBytes + cSizeStart];
for ( var j = 1; j<numBytes-1; j++ ) {
currentBlockSize = currentBlockSize | ( byteData[i*numBytes + cSizeStart + j] << (j*numBytes) );
// Each data point consists of 8 bytes regardless of the header type
currentBlockSize = currentBlockSize | ( byteData[i*numBytes + cSizeStart + j] << (j*8) );
}

currentOffset = currentOffset + currentBlockSize;
Expand Down

0 comments on commit 8c84da3

Please sign in to comment.