ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
reusex::geometry::SyncDownsampleOptions Struct Reference

Options controlling a synchronized project-cloud downsample. More...

#include <sync_downsample.hpp>

Collaboration diagram for reusex::geometry::SyncDownsampleOptions:

Public Attributes

float leaf_size = 0.0f
 Voxel leaf size in meters. Must be positive.
std::string primary_output
 Output name for the primary cloud. Empty means overwrite primary.
bool only_primary = false
 When true, only the primary cloud is downsampled.
bool force_desync = false
 Required alongside only_primary to actually perform a desynchronizing downsample.

Detailed Description

Options controlling a synchronized project-cloud downsample.

The default behaviour keeps every derived product in sync: all point clouds that share the primary cloud's point count (its index-aligned siblings — normals, labels, planes, rooms, instances, …) are downsampled with the same voxel assignment (docs/STANDARDS.md §3.2, "parallel clouds move together"). Desynchronizing a project is only possible by explicitly opting out.

Definition at line 22 of file sync_downsample.hpp.

Member Data Documentation

◆ force_desync

bool reusex::geometry::SyncDownsampleOptions::force_desync = false

Required alongside only_primary to actually perform a desynchronizing downsample.

Without it, sync_downsample throws listing the siblings that would be invalidated (docs/STANDARDS.md §5, loud failure).

Definition at line 37 of file sync_downsample.hpp.

◆ leaf_size

float reusex::geometry::SyncDownsampleOptions::leaf_size = 0.0f

Voxel leaf size in meters. Must be positive.

Definition at line 24 of file sync_downsample.hpp.

◆ only_primary

bool reusex::geometry::SyncDownsampleOptions::only_primary = false

When true, only the primary cloud is downsampled.

This desynchronizes any index-aligned siblings, so it is refused (throws) unless force_desync is also set. See only_primary handling below.

Definition at line 32 of file sync_downsample.hpp.

◆ primary_output

std::string reusex::geometry::SyncDownsampleOptions::primary_output

Output name for the primary cloud. Empty means overwrite primary.

Definition at line 27 of file sync_downsample.hpp.


The documentation for this struct was generated from the following file: