ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
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
13
namespace
reusex::geometry
{
14
18
struct
MeshOptions
{
19
float
search_threshold
= 10.0f;
20
float
new_plane_offset
= 0.05f;
21
IndicesConstPtr
filter
=
nullptr
;
22
};
23
36
pcl::PolygonMeshPtr
mesh
(
CloudConstPtr
cloud,
CloudNConstPtr
normals,
37
EigenVectorContainer<double, 4>
&planes,
38
EigenVectorContainer<double, 3>
¢roids,
39
std::vector<IndicesPtr> &inliers,
CloudLConstPtr
rooms,
40
MeshOptions
const
opt =
MeshOptions
{});
41
}
// namespace reusex::geometry
reusex::geometry
Definition
processing_observer.hpp:19
reusex::geometry::mesh
pcl::PolygonMeshPtr mesh(CloudConstPtr cloud, CloudNConstPtr normals, EigenVectorContainer< double, 4 > &planes, EigenVectorContainer< double, 3 > ¢roids, std::vector< IndicesPtr > &inliers, CloudLConstPtr rooms, MeshOptions const opt=MeshOptions{})
Generate a mesh from point cloud and geometric primitives.
reusex::IndicesConstPtr
pcl::IndicesConstPtr IndicesConstPtr
Definition
types.hpp:24
reusex::CloudLConstPtr
typename CloudL::ConstPtr CloudLConstPtr
Definition
types.hpp:36
reusex::CloudConstPtr
typename Cloud::ConstPtr CloudConstPtr
Definition
types.hpp:28
reusex::EigenVectorContainer
std::vector< Eigen::Matrix< Scalar, Rows, 1 >, Eigen::aligned_allocator< Eigen::Matrix< Scalar, Rows, 1 > > > EigenVectorContainer
Definition
types.hpp:43
reusex::CloudNConstPtr
typename CloudN::ConstPtr CloudNConstPtr
Definition
types.hpp:32
reusex::geometry::MeshOptions
Options for mesh generation.
Definition
mesh.hpp:18
reusex::geometry::MeshOptions::search_threshold
float search_threshold
Search threshold for mesh generation.
Definition
mesh.hpp:19
reusex::geometry::MeshOptions::filter
IndicesConstPtr filter
Optional filter to limit processing.
Definition
mesh.hpp:21
reusex::geometry::MeshOptions::new_plane_offset
float new_plane_offset
Offset for new plane creation.
Definition
mesh.hpp:20
libs
reusex
include
geometry
mesh.hpp
Generated by
1.17.0