Browse Source

fix wrong normal direction

V2-integral
Zhicheng Wang 6 days ago
parent
commit
382fd7e40c
  1. 2
      primitive_process/src/primitive/axis/helixline_extrude_axis.cpp

2
primitive_process/src/primitive/axis/helixline_extrude_axis.cpp

@ -89,7 +89,7 @@ std::pair<Eigen::Vector2d, Eigen::Projective2d> helixline_extrude_axis::to_patte
// 为了与polyline的表现一致,这里交换割线与法线 // 为了与polyline的表现一致,这里交换割线与法线
Eigen::Vector3d bitangent{std::cos(this->total_theta * t), std::sin(this->total_theta * t), .0}; 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); normal /= std::sqrt(1 + this->total_theta * this->total_theta);
const auto proj_x = op.dot(bitangent); const auto proj_x = op.dot(bitangent);

Loading…
Cancel
Save