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 std::vector<std::string> with;
28};
29
31 CLI::App &app, std::shared_ptr<RuxOptions> global_opt);
33 SubcommandEditDownsampleOptions const &opt, 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)
std::vector< std::string > with
Parallel clouds to downsample with the same voxel assignment.
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.