ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
downsample.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
7
8#include <CLI/CLI.hpp>
9#include <memory>
10#include <string>
11#include <vector>
12
16 std::string input = "cloud";
17
19 std::string output;
20
22 float resolution = 0.0f;
23
27 bool only_primary = false;
28
31 bool force_desync = false;
32};
33
35 std::shared_ptr<RuxOptions> global_opt);
37 const RuxOptions &global_opt);
void setup_subcommand_edit_downsample(CLI::App &app, std::shared_ptr< RuxOptions > global_opt)
int run_subcommand_edit_downsample(SubcommandEditDownsampleOptions const &opt, const RuxOptions &global_opt)
bool only_primary
When set, only the primary cloud is downsampled.
bool force_desync
Required together with only_primary to actually perform a desynchronizing downsample (docs/STANDARDS....
float resolution
Voxel leaf size in meters. Required; non-positive values are rejected.
std::string output
Output cloud name. Empty string means "same as input" (overwrite).
std::string input
Source cloud name in the project DB.