浏览代码

LGTM fixes

Garrett Johnson 5 年之前
父节点
当前提交
2aebf323e8
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/B3DMLoader.js
  2. 1 1
      src/three/ThreeTilesRenderer.js

+ 2 - 2
src/B3DMLoader.js

@@ -67,7 +67,7 @@ class B3DMLoader {
 		const jsonFeatureTableData = new Uint8Array( buffer, featureTableStart, featureTableJSONByteLength );
 		const jsonFeatureTable = featureTableJSONByteLength === 0 ? {} : JSON.parse( arrayToString( jsonFeatureTableData ) );
 
-		const binFeatureTableData = new Uint8Array( buffer, featureTableStart + featureTableJSONByteLength, featureTableBinaryByteLength );
+		// const binFeatureTableData = new Uint8Array( buffer, featureTableStart + featureTableJSONByteLength, featureTableBinaryByteLength );
 		// TODO: dereference the json feature table data in to the binary array.
 		// https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/specification/TileFormats/FeatureTable/README.md#json-header
 
@@ -77,7 +77,7 @@ class B3DMLoader {
 		const jsonBatchTableData = new Uint8Array( buffer, batchTableStart, batchTableJSONByteLength );
 		const jsonBatchTable = batchTableJSONByteLength === 0 ? {} : JSON.parse( arrayToString( jsonBatchTableData ) );
 
-		const binBatchTableData = new Uint8Array( buffer, batchTableStart + batchTableJSONByteLength, batchTableBinaryByteLength );
+		// const binBatchTableData = new Uint8Array( buffer, batchTableStart + batchTableJSONByteLength, batchTableBinaryByteLength );
 		// TODO: dereference the json batch table data in to the binary array.
 		// https://github.com/AnalyticalGraphicsInc/3d-tiles/blob/master/specification/TileFormats/FeatureTable/README.md#json-header
 

+ 1 - 1
src/three/ThreeTilesRenderer.js

@@ -588,7 +588,7 @@ class ThreeTilesRenderer extends TilesRenderer {
 
 		} else if ( 'sphere' in boundingVolume ) {
 
-			const sphere = cached.sphere;
+			// const sphere = cached.sphere;
 
 			console.warn( 'ThreeTilesRenderer : Sphere bounds not supported.' );