From 7e76a16cdac7fa0d93ed97aa76ae38985717fc7a Mon Sep 17 00:00:00 2001 From: lh <2334563547@qq.com> Date: Tue, 15 Sep 2026 10:44:03 +0800 Subject: [PATCH] =?UTF-8?q?feat(nmRender):=20=E6=94=BE=E5=A4=A7=E6=97=8B?= =?UTF-8?q?=E8=BD=AC=E4=B8=AD=E5=BF=83=E6=A0=87=E8=AE=B0=E4=B8=8E=E6=96=B9?= =?UTF-8?q?=E5=90=91=E8=BD=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将旋转中心标记总长度调整为约 48px,线宽调整为 3px - 将方向轴默认视口跨度调整为 20.5% - 保持原有拾取、相机和生命周期逻辑不变 --- Src/nmNum/nmRender/nmVTKOrientationMarkerController.cpp | 4 ++-- Src/nmNum/nmRender/nmVTKRotationCenterMarkerLayer.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Src/nmNum/nmRender/nmVTKOrientationMarkerController.cpp b/Src/nmNum/nmRender/nmVTKOrientationMarkerController.cpp index 165153c..9d8c870 100644 --- a/Src/nmNum/nmRender/nmVTKOrientationMarkerController.cpp +++ b/Src/nmNum/nmRender/nmVTKOrientationMarkerController.cpp @@ -65,8 +65,8 @@ nmVTKOrientationMarkerController::nmVTKOrientationMarkerController() m_dViewport[0] = 0.015; m_dViewport[1] = 0.015; - m_dViewport[2] = 0.13; - m_dViewport[3] = 0.13; + m_dViewport[2] = 0.22; + m_dViewport[3] = 0.22; if(m_pAxesActor != nullptr) { m_pAxesActor->SetXAxisLabelText("X"); diff --git a/Src/nmNum/nmRender/nmVTKRotationCenterMarkerLayer.cpp b/Src/nmNum/nmRender/nmVTKRotationCenterMarkerLayer.cpp index f24b5fd..f9d612d 100644 --- a/Src/nmNum/nmRender/nmVTKRotationCenterMarkerLayer.cpp +++ b/Src/nmNum/nmRender/nmVTKRotationCenterMarkerLayer.cpp @@ -23,7 +23,7 @@ namespace { -const double ROTATION_CENTER_HALF_LENGTH_PIXELS = 18.0; +const double ROTATION_CENTER_HALF_LENGTH_PIXELS = 24.0; const double ROTATION_CENTER_DEPTH_OFFSET_PIXELS = 1.5; const double ROTATION_CENTER_HOMOGENEOUS_EPSILON = std::numeric_limits::epsilon(); @@ -367,7 +367,7 @@ private: m_pMapper->SetColorModeToDirectScalars(); m_pActor->SetMapper(m_pMapper); - m_pActor->GetProperty()->SetLineWidth(2.0f); + m_pActor->GetProperty()->SetLineWidth(3.0f); m_pActor->GetProperty()->SetOpacity(1.0); m_pActor->GetProperty()->LightingOff(); m_pActor->PickableOff();