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 "
../global-params.hpp
"
7
#include <CLI/CLI.hpp>
8
#include <memory>
9
#include <string>
10
11
namespace
fs = std::filesystem;
12
14
struct
SubcommandMeshOptions
{
15
std::string
output_mesh_name
=
"mesh"
;
16
17
float
grid_size
= 0.5;
18
19
double
angle_threshold
= 25.0;
20
double
distance_threshold
= 0.2;
21
22
double
search_threshold
= 0.60;
23
double
new_plane_offset
= 0.25;
24
25
std::string
filter_expr
;
26
};
27
28
// Function declarations.
29
void
setup_subcommand_create_mesh
(CLI::App &app,
30
std::shared_ptr<RuxOptions> global_opt);
31
int
run_subcommand_mesh
(
SubcommandMeshOptions
const
&opt,
32
const
RuxOptions
&global_opt);
setup_subcommand_create_mesh
void setup_subcommand_create_mesh(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
run_subcommand_mesh
int run_subcommand_mesh(SubcommandMeshOptions const &opt, const RuxOptions &global_opt)
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandMeshOptions
Collection of all options of Subcommand A.
Definition
mesh.hpp:14
SubcommandMeshOptions::search_threshold
double search_threshold
Definition
mesh.hpp:22
SubcommandMeshOptions::angle_threshold
double angle_threshold
Definition
mesh.hpp:19
SubcommandMeshOptions::output_mesh_name
std::string output_mesh_name
Mesh name in ProjectDB.
Definition
mesh.hpp:15
SubcommandMeshOptions::distance_threshold
double distance_threshold
Definition
mesh.hpp:20
SubcommandMeshOptions::filter_expr
std::string filter_expr
Filter expression to limit processing.
Definition
mesh.hpp:25
SubcommandMeshOptions::grid_size
float grid_size
Definition
mesh.hpp:17
SubcommandMeshOptions::new_plane_offset
double new_plane_offset
Definition
mesh.hpp:23
apps
rux
include
create
mesh.hpp
Generated by
1.17.0