From https://forum.kde.org/viewtopic.php?f=74&t=126959#
std::vetcor<Vector3d> vec_pts(n); ... Map<Matrix<double,3,Dynamic> > pts(vec_pts.data()->data(), 3, n);