From ed5c9f60b31fb172393b71cf8e54b7834f7b682d Mon Sep 17 00:00:00 2001 From: sunhonglei Date: Thu, 16 Jan 2025 09:58:17 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Views/UserControl/Viewport3D.xaml.cs | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/Views/UserControl/Viewport3D.xaml.cs b/Views/UserControl/Viewport3D.xaml.cs index 3672c7e..1dc994f 100644 --- a/Views/UserControl/Viewport3D.xaml.cs +++ b/Views/UserControl/Viewport3D.xaml.cs @@ -601,23 +601,23 @@ public partial class Viewport3D var mousePosition = e.GetPosition(Viewport3Dx); var hits = Viewport3Dx.FindHits(mousePosition); // 如果没有命中任何 3D 对象 - if (hits == null || hits.Count == 0) - { - ViewportManager.ClearDicModels(); - return; - } - var hit = hits[0]; - // 检查是否是 MeshGeometryModel3D - if (hit.ModelHit is LineGeometryModel3D modelHit) - { - // 获取几何信息 - if (modelHit != null) - { - } - } - else - { - ViewportManager.ClearDicModels(); - } + //if (hits == null || hits.Count == 0) + //{ + // ViewportManager.ClearDicModels(); + // return; + //} + //var hit = hits[0]; + //// 检查是否是 MeshGeometryModel3D + //if (hit.ModelHit is LineGeometryModel3D modelHit) + //{ + // // 获取几何信息 + // if (modelHit != null) + // { + // } + //} + //else + //{ + // ViewportManager.ClearDicModels(); + //} } } \ No newline at end of file