Skip to content

Commit

Permalink
change comments
Browse files Browse the repository at this point in the history
  • Loading branch information
atenpas committed Jan 3, 2018
1 parent d9ba92e commit b4f1fee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gpg/local_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void LocalFrame::print()

void LocalFrame::findAverageNormalAxis(const Eigen::MatrixXd &normals)
{
// 1. Calculate curvature axis.
// 1. Calculate "curvature axis" (corresponds to minor principal curvature axis).
Eigen::Matrix3d M = normals * normals.transpose();
Eigen::SelfAdjointEigenSolver<Eigen::Matrix3d> eigen_solver(M); // M is adjoint (M is equal to its transpose)
Eigen::Vector3d eigen_values = eigen_solver.eigenvalues().real();
Expand All @@ -22,7 +22,7 @@ void LocalFrame::findAverageNormalAxis(const Eigen::MatrixXd &normals)
eigen_values.minCoeff(&min_index);
curvature_axis_ = eigen_vectors.col(min_index);

// 2. Calculate surface normal (corresponds to major principal curvature axis).
// 2. Calculate surface normal.
int max_index;
eigen_values.maxCoeff(&max_index);
normal_ = eigen_vectors.col(max_index);
Expand All @@ -35,7 +35,7 @@ void LocalFrame::findAverageNormalAxis(const Eigen::MatrixXd &normals)
normal_ *= -1.0;
}

// 4. Create binormal.
// 4. Create binormal (corresponds to major principal curvature axis).
binormal_ = curvature_axis_.cross(normal_);
}

Expand Down

0 comments on commit b4f1fee

Please sign in to comment.