|
@@ -777,37 +777,10 @@ Object.assign( THREE.VTKLoader.prototype, THREE.EventDispatcher.prototype, {
|
|
|
|
|
|
delete ele[ '#text' ];
|
|
delete ele[ '#text' ];
|
|
|
|
|
|
- // Get the content and optimize it
|
|
|
|
- if ( ele.attributes.type === 'Float32' ) {
|
|
|
|
-
|
|
|
|
- if ( ele.attributes.format === 'binary' ) {
|
|
|
|
-
|
|
|
|
- if ( ! compressed ) {
|
|
|
|
-
|
|
|
|
- txt = txt.filter( function ( el, idx ) {
|
|
|
|
-
|
|
|
|
- if ( idx !== 0 ) return true;
|
|
|
|
-
|
|
|
|
- } );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } else if ( ele.attributes.type === 'Int64' ) {
|
|
|
|
|
|
+ if ( ele.attributes.type === 'Int64' ) {
|
|
|
|
|
|
if ( ele.attributes.format === 'binary' ) {
|
|
if ( ele.attributes.format === 'binary' ) {
|
|
|
|
|
|
- if ( ! compressed ) {
|
|
|
|
-
|
|
|
|
- txt = txt.filter( function ( el, idx ) {
|
|
|
|
-
|
|
|
|
- if ( idx !== 0 ) return true;
|
|
|
|
-
|
|
|
|
- } );
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
txt = txt.filter( function ( el, idx ) {
|
|
txt = txt.filter( function ( el, idx ) {
|
|
|
|
|
|
if ( idx % 2 !== 1 ) return true;
|
|
if ( idx % 2 !== 1 ) return true;
|