From c3c23814c1802121af66feecdf4238f1d60c4651 Mon Sep 17 00:00:00 2001
From: 584911253@qq.com <584911253@qq.com>
Date: 星期二, 28 三月 2023 09:58:45 +0800
Subject: [PATCH] 模型剖切修改

---
 src/views/Synthesis/LeftMenu.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/Synthesis/LeftMenu.vue b/src/views/Synthesis/LeftMenu.vue
index 3949311..ce5f276 100644
--- a/src/views/Synthesis/LeftMenu.vue
+++ b/src/views/Synthesis/LeftMenu.vue
@@ -1835,7 +1835,12 @@
       //   }
       // }
       window.model.clippingPlanes = clippingPlanes;
-
+      if (window.modelHeight && window.modelHeight != 0){
+        // console.log("window.modelHeight---",window.modelHeight)
+        window.model.clippingPlanes.modelMatrix = Cesium.Matrix4.fromTranslation(
+            new Cesium.Cartesian3(0.0, 0.0, window.modelHeight)
+        );
+      }
       // 缁戝畾涓婄Щ鍔ㄤ簨浠�
       const downHandler = new Cesium.ScreenSpaceEventHandler(
         Viewer.scene.canvas

--
Gitblit v1.9.3