ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
mesh.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#include "reusex/types.hpp"
7
8#include <pcl/PolygonMesh.h>
9#include <pcl/common/common.h>
10
11#include <memory>
12
13namespace reusex::geometry {
14
19 float search_threshold = 10.0f;
20 float new_plane_offset = 0.05f;
22};
23
36pcl::PolygonMeshPtr mesh(CloudConstPtr cloud, CloudNConstPtr normals,
39 std::vector<IndicesPtr> &inliers, CloudLConstPtr rooms,
40 MeshOptions const opt = MeshOptions{});
41} // namespace reusex::geometry
pcl::PolygonMeshPtr mesh(CloudConstPtr cloud, CloudNConstPtr normals, EigenVectorContainer< double, 4 > &planes, EigenVectorContainer< double, 3 > &centroids, std::vector< IndicesPtr > &inliers, CloudLConstPtr rooms, MeshOptions const opt=MeshOptions{})
Generate a mesh from point cloud and geometric primitives.
pcl::IndicesConstPtr IndicesConstPtr
Definition types.hpp:24
typename CloudL::ConstPtr CloudLConstPtr
Definition types.hpp:36
typename Cloud::ConstPtr CloudConstPtr
Definition types.hpp:28
std::vector< Eigen::Matrix< Scalar, Rows, 1 >, Eigen::aligned_allocator< Eigen::Matrix< Scalar, Rows, 1 > > > EigenVectorContainer
Definition types.hpp:43
typename CloudN::ConstPtr CloudNConstPtr
Definition types.hpp:32
Options for mesh generation.
Definition mesh.hpp:18
float search_threshold
Search threshold for mesh generation.
Definition mesh.hpp:19
IndicesConstPtr filter
Optional filter to limit processing.
Definition mesh.hpp:21
float new_plane_offset
Offset for new plane creation.
Definition mesh.hpp:20