From 382fd7e40c776499409d48c1145ed97f73b42744 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang <1627343141@qq.com> Date: Mon, 29 Jun 2026 05:47:11 +0800 Subject: [PATCH] fix wrong normal direction --- primitive_process/src/primitive/axis/helixline_extrude_axis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/primitive_process/src/primitive/axis/helixline_extrude_axis.cpp b/primitive_process/src/primitive/axis/helixline_extrude_axis.cpp index 111c8b8..578ccce 100644 --- a/primitive_process/src/primitive/axis/helixline_extrude_axis.cpp +++ b/primitive_process/src/primitive/axis/helixline_extrude_axis.cpp @@ -89,7 +89,7 @@ std::pair helixline_extrude_axis::to_patte // 为了与polyline的表现一致,这里交换割线与法线 Eigen::Vector3d bitangent{std::cos(this->total_theta * t), std::sin(this->total_theta * t), .0}; - Eigen::Vector3d normal{std::sin(this->total_theta * t), std::cos(this->total_theta * t), this->total_theta}; + Eigen::Vector3d normal{std::sin(this->total_theta * t), -std::cos(this->total_theta * t), this->total_theta}; normal /= std::sqrt(1 + this->total_theta * this->total_theta); const auto proj_x = op.dot(bitangent);