ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
texture.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
SubcommandTextureOptions
{
15
std::string
mesh_name
=
"mesh"
;
16
std::string
output_name
=
17
"textured_mesh"
;
18
std::string
cloud_name
=
"cloud"
;
19
bool
debug_colors
=
20
false
;
21
float
texels_per_meter
= 400.0f;
22
int
max_resolution
= 4096;
23
int
atlas_tile_size
= 2048;
24
float
distance_threshold
= 0.02f;
25
};
26
27
// Function declarations.
28
void
setup_subcommand_create_texture
(CLI::App &app,
29
std::shared_ptr<RuxOptions> global_opt);
30
int
run_subcommand_texture
(
SubcommandTextureOptions
const
&opt,
31
const
RuxOptions
&global_opt);
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandTextureOptions
Collection of all options of Subcommand A.
Definition
texture.hpp:14
SubcommandTextureOptions::atlas_tile_size
int atlas_tile_size
Atlas tile size for PCL visualization.
Definition
texture.hpp:23
SubcommandTextureOptions::cloud_name
std::string cloud_name
Point cloud name in ProjectDB.
Definition
texture.hpp:18
SubcommandTextureOptions::output_name
std::string output_name
Output textured mesh name in ProjectDB.
Definition
texture.hpp:16
SubcommandTextureOptions::debug_colors
bool debug_colors
Use distinct colors for UV mapping verification.
Definition
texture.hpp:19
SubcommandTextureOptions::max_resolution
int max_resolution
Maximum texture size.
Definition
texture.hpp:22
SubcommandTextureOptions::distance_threshold
float distance_threshold
Max distance from point to surface.
Definition
texture.hpp:24
SubcommandTextureOptions::texels_per_meter
float texels_per_meter
Target texture resolution.
Definition
texture.hpp:21
SubcommandTextureOptions::mesh_name
std::string mesh_name
Mesh name in ProjectDB.
Definition
texture.hpp:15
run_subcommand_texture
int run_subcommand_texture(SubcommandTextureOptions const &opt, const RuxOptions &global_opt)
setup_subcommand_create_texture
void setup_subcommand_create_texture(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
apps
rux
include
create
texture.hpp
Generated by
1.17.0