ソースを参照

fix: 热点去掉距离可见

xzw 9 ヶ月 前
コミット
cb3ff8fa4b
3 ファイル変更1037 行追加823 行削除
  1. 1034 820
      pnpm-lock.yaml
  2. 2 2
      public/lib/potree/potree.js
  3. 1 1
      src/sdk/cover/index.js

ファイルの差分が大きいため隠しています
+ 1034 - 820
pnpm-lock.yaml


+ 2 - 2
public/lib/potree/potree.js

@@ -22302,7 +22302,7 @@
 	  },
 	  minNodeSize: 30,
 	  // perspectiveCamera允许加载的node的最小可见像素宽度。越大越省性能
-	  tiles3DMaxMemory: 200,
+	  tiles3DMaxMemory: 170,
 	  //M. 最大支持3dTiles的内存大小 超出会崩溃。  改太小太大都会卡,太大崩溃
 	  pointDensity: {
 	    magnifier: {
@@ -69301,7 +69301,7 @@
 	    var objWeight = posCount * eachObjPosWeight;
 	    var laserWeight = Potree.numVisiblePoints * eachCloudPointWeight; //点云实际显示所占大小
 	    var laserMemoryWeight = Potree.lru.numPoints * eachCloudPointWeight; //点云所使用内存大小
-	    var tiles3DWeight = viewer.visiVertexCount * eachGltfPosWeight; //M   3dTiles所占内存大小
+	    var tiles3DWeight = (viewer.visiVertexCount || 0) * eachGltfPosWeight; //M   3dTiles所占内存大小
 	    var tiles3DMemoryWeight = viewer.tiles3dMemoryUsage / 1000 / 1000; //M   3dTiles显示的所占内存大小
 
 	    /* let min = 0.1, max = 6, minP = 100, maxP = 1000000; 

+ 1 - 1
src/sdk/cover/index.js

@@ -53,7 +53,7 @@ export const enter = ({ dom, mapDom, isLocal, lonlat, scenes,  panoBasePath,clou
     const mapBus = mitt(), sceneBus = mitt()
 
 
-    const tagLimitDis = 8;
+    const tagLimitDis //= 8;
 
     Potree.settings.showCompass = true
     Potree.settings.compassDom = dom.querySelector('#direction')