File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ using namespace patchwork;
55
66bool point_z_cmp (PointXYZ a, PointXYZ b) { return a.z < b.z ; }
77
8- Eigen::MatrixX3f PatchWorkpp::toEigenCloud (vector<PointXYZ> cloud)
9- {
8+ Eigen::MatrixX3f PatchWorkpp::toEigenCloud (const vector<PointXYZ> & cloud) {
9+
1010 Eigen::MatrixX3f dst (cloud.size (), 3 );
1111 int j=0 ;
1212 for (auto &p: cloud) {
@@ -15,8 +15,8 @@ Eigen::MatrixX3f PatchWorkpp::toEigenCloud(vector<PointXYZ> cloud)
1515 return dst;
1616}
1717
18- Eigen::VectorXi PatchWorkpp::toIndices (vector<PointXYZ> cloud)
19- {
18+ Eigen::VectorXi PatchWorkpp::toIndices (const vector<PointXYZ> & cloud) {
19+
2020 Eigen::VectorXi dst (cloud.size ());
2121 int j = 0 ;
2222 for (auto &p: cloud) {
@@ -25,8 +25,8 @@ Eigen::VectorXi PatchWorkpp::toIndices(vector<PointXYZ> cloud)
2525 return dst;
2626}
2727
28- void PatchWorkpp::addCloud (vector<PointXYZ> &cloud, vector<PointXYZ> &add)
29- {
28+ void PatchWorkpp::addCloud (vector<PointXYZ> &cloud, vector<PointXYZ> &add) {
29+
3030 cloud.insert (cloud.end (), add.begin (), add.end ());
3131}
3232
You can’t perform that action at this time.
0 commit comments