ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
windows.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
#include <vector>
11
12
namespace
fs = std::filesystem;
13
15
struct
SubcommandWindowOptions
{
16
std::string
mesh_name
=
"mesh"
;
17
std::string
instance_cloud_name
=
"instances"
;
18
std::string
semantic_cloud_name
=
"labels"
;
19
std::string
mode
=
"rect"
;
20
float
wall_offset
= 0.5f;
21
float
alpha
= 0.5f;
22
std::vector<uint32_t>
23
labels_to_process
;
24
bool
clear_existing
=
25
false
;
26
bool
include_internal
=
27
false
;
28
};
29
30
// Function declarations.
31
void
setup_subcommand_create_windows
(CLI::App &app,
32
std::shared_ptr<RuxOptions> global_opt);
33
int
run_subcommand_create_windows
(
SubcommandWindowOptions
const
&opt,
34
const
RuxOptions
&global_opt);
global-params.hpp
RuxOptions
Definition
global-params.hpp:44
SubcommandWindowOptions
Options for rux create windows.
Definition
windows.hpp:15
SubcommandWindowOptions::alpha
float alpha
ConcaveHull alpha for polyline mode.
Definition
windows.hpp:21
SubcommandWindowOptions::clear_existing
bool clear_existing
Delete all existing windows before creating new ones.
Definition
windows.hpp:24
SubcommandWindowOptions::labels_to_process
std::vector< uint32_t > labels_to_process
Semantic labels to treat as windows.
Definition
windows.hpp:23
SubcommandWindowOptions::include_internal
bool include_internal
Include windows inside mesh volume (default: false).
Definition
windows.hpp:26
SubcommandWindowOptions::mesh_name
std::string mesh_name
Definition
windows.hpp:16
SubcommandWindowOptions::instance_cloud_name
std::string instance_cloud_name
Definition
windows.hpp:17
SubcommandWindowOptions::wall_offset
float wall_offset
Offset along outward wall normal (meters).
Definition
windows.hpp:20
SubcommandWindowOptions::mode
std::string mode
"rect" or "poly"
Definition
windows.hpp:19
SubcommandWindowOptions::semantic_cloud_name
std::string semantic_cloud_name
Definition
windows.hpp:18
setup_subcommand_create_windows
void setup_subcommand_create_windows(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
run_subcommand_create_windows
int run_subcommand_create_windows(SubcommandWindowOptions const &opt, const RuxOptions &global_opt)
apps
rux
include
create
windows.hpp
Generated by
1.17.0