Skip to content
Snippets Groups Projects
Commit affeaa4c authored by Tom Fischer's avatar Tom Fischer
Browse files

[T/MeL] Use Point3d::asEigenVector3d() instead Eigen::Map.

parent 0570c810
No related branches found
No related tags found
No related merge requests found
...@@ -79,9 +79,8 @@ static Eigen::MatrixXd getSelectedNodes(Coords const& natural_coordss, ...@@ -79,9 +79,8 @@ static Eigen::MatrixXd getSelectedNodes(Coords const& natural_coordss,
static Eigen::MatrixXd appendNode(Eigen::MatrixXd const& mat, static Eigen::MatrixXd appendNode(Eigen::MatrixXd const& mat,
MathLib::Point3d const& pt) MathLib::Point3d const& pt)
{ {
Eigen::Map<const Eigen::Vector3d> col(pt.data());
Eigen::MatrixXd nodes(mat.rows(), mat.cols() + 1); Eigen::MatrixXd nodes(mat.rows(), mat.cols() + 1);
nodes << mat, col; nodes << mat, pt.asEigenVector3d();
return nodes; return nodes;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment