From f103aecc49072551b251c75c4fac12a65940fd40 Mon Sep 17 00:00:00 2001
From: jihongshun <1151753686@qq.com>
Date: 星期六, 06 九月 2025 17:12:31 +0800
Subject: [PATCH] 视锥体

---
 src/views/system/shootPoint/components/shootPointDialog.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/system/shootPoint/components/shootPointDialog.vue b/src/views/system/shootPoint/components/shootPointDialog.vue
index d4bb63b..17180a8 100644
--- a/src/views/system/shootPoint/components/shootPointDialog.vue
+++ b/src/views/system/shootPoint/components/shootPointDialog.vue
@@ -507,7 +507,7 @@
       console.log(this.treeData)
     },
     //鏁扮粍 濉旂殑绮惧害 濉旂殑绾害  濉旂殑楂樺害  鍗婂緞
-    insertRaisedPoints(data, centerLon, centerLat, centerHeight, radius = 10) {
+    insertRaisedPoints(data, centerLon, centerLat, centerHeight, radius = 15) {
       const center = Cesium.Cartesian3.fromDegrees(centerLon, centerLat, centerHeight);
       const result = JSON.parse(JSON.stringify(data)); // 娣辨嫹璐濋伩鍏嶆薄鏌撳師鏁版嵁
       const inserts = []; // 鐢ㄤ簬瀛樺偍鎻掑叆椤瑰強鍏剁洰鏍囦綅缃�
@@ -520,7 +520,8 @@
 
         const cartA = Cesium.Cartesian3.fromDegrees(pointA.longitude, pointA.latitude, pointA.height);
         const cartB = Cesium.Cartesian3.fromDegrees(pointB.longitude, pointB.latitude, pointB.height);
-
+        console.log(cartA)
+        console.log(cartB)
         const closest = this.closestPointOnSegment(cartA, cartB, center);
         const distance = Cesium.Cartesian3.distance(closest, center);
         console.log(distance)

--
Gitblit v1.9.3