From 59c6681fc899612e4f6ebcb06b98f54b3438f1e6 Mon Sep 17 00:00:00 2001 From: luoyifan Date: Sun, 8 Jun 2025 20:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96=20Instance?= =?UTF-8?q?Mesh(Point)=20+=20BufferGeometry=20+=20Label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ThreePerfView.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/ThreePerfView.vue b/src/components/ThreePerfView.vue index 5ce9141..6d84c14 100644 --- a/src/components/ThreePerfView.vue +++ b/src/components/ThreePerfView.vue @@ -180,7 +180,7 @@ function test2() { refreshCount() } -function isLabelInView(label, frustum, cameraPosition, maxDistance = 65) { +function isLabelInView(label, frustum) { const pos = new THREE.Vector3() label.getWorldPosition(pos) @@ -208,7 +208,6 @@ function getLabelPixelSize(fontSize, cameraZoom) { function shouldShowLabel(label, minPixelSize = 700) { const pixelSize = getLabelPixelSize(label.fontSize, camera.zoom) - console.log(`pixel size: ${pixelSize}`) return pixelSize >= minPixelSize }