ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
eigen_types.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#pragma once
6
7// Eigen-only type aliases. Include this instead of <reusex/types.hpp> when a
8// translation unit needs only the linear-algebra helpers (no PCL point-cloud
9// containers). Keeping the Eigen and PCL aliases separate avoids force-pulling
10// the (heavy) PCL headers into TUs that never touch a point cloud.
11
12#include <Eigen/Core>
13
14#include <utility>
15#include <vector>
16
17namespace reusex {
18
19template <typename Scalar, int Rows>
21 std::vector<Eigen::Matrix<Scalar, Rows, 1>,
22 Eigen::aligned_allocator<Eigen::Matrix<Scalar, Rows, 1>>>;
23
24using Pair = std::pair<Eigen::Vector4d, Eigen::Vector3d>;
25using PlanePair = std::pair<Pair, Pair>;
26
27} // namespace reusex
std::pair< Pair, Pair > PlanePair
std::pair< Eigen::Vector4d, Eigen::Vector3d > Pair
std::vector< Eigen::Matrix< Scalar, Rows, 1 >, Eigen::aligned_allocator< Eigen::Matrix< Scalar, Rows, 1 > > > EigenVectorContainer