| 128 | } |
| 129 | |
| 130 | Eigen::Vector3f ComputeCameraCenter(const float* R, const float* T) { |
| 131 | const Eigen::Map<const Eigen::Matrix<float, 3, 3, Eigen::RowMajor>> R_m(R); |
| 132 | const Eigen::Map<const Eigen::Vector3f> T_m(T); |
| 133 | return -R_m.transpose() * T_m; |
| 134 | } |
| 135 | |
| 136 | std::vector<Eigen::Vector3f> ComputeFaceNormals(const PlyMesh& mesh) { |
| 137 | const size_t num_faces = mesh.faces.size(); |