|
|
@ -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); |
|
|
|