Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/js/loaders/VTKLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -688,8 +688,9 @@
// The [DATA] portion stores contiguously every block appended together. The offset from the beginning of the data section to the beginning of a block is
// computed by summing the compressed block sizes from preceding blocks according to the header.

const textNode = ele[ '#text' ];
const rawData = Array.isArray( textNode ) ? textNode[ 0 ] : textNode;

const rawData = ele[ '#text' ];
const byteData = Base64toByteArray( rawData );
let blocks = byteData[ 0 ];

Expand Down
3 changes: 2 additions & 1 deletion examples/jsm/loaders/VTKLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,8 @@ class VTKLoader extends Loader {
// The [DATA] portion stores contiguously every block appended together. The offset from the beginning of the data section to the beginning of a block is
// computed by summing the compressed block sizes from preceding blocks according to the header.

const rawData = ele[ '#text' ];
const textNode = ele[ '#text' ];
const rawData = Array.isArray( textNode ) ? textNode[ 0 ] : textNode;

const byteData = Base64toByteArray( rawData );

Expand Down