ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
e57.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
7
#include "reusex/types.hpp"
8
9
#include <filesystem>
10
#include <string>
11
#include <vector>
12
13
namespace
reusex
{
14
class
ProjectDB
;
15
}
16
17
namespace
reusex::io
{
18
19
// ── Import
20
// ────────────────────────────────────────────────────────────────────
21
34
void
import_e57
(
ProjectDB
&db,
const
std::filesystem::path &e57_path);
35
36
// ── Export
37
// ────────────────────────────────────────────────────────────────────
38
40
struct
E57ScanExport
{
41
std::string
name
;
42
CloudConstPtr
cloud
;
43
CloudNConstPtr
normals
;
44
};
45
54
void
export_e57
(
const
std::filesystem::path &path,
55
const
std::vector<E57ScanExport> &scans);
56
57
}
// namespace reusex::io
reusex::ProjectDB
Definition
ProjectDB.hpp:31
reusex::io
Definition
e57.hpp:17
reusex::io::import_e57
void import_e57(ProjectDB &db, const std::filesystem::path &e57_path)
Import point cloud data from an E57 file into a ProjectDB.
reusex::io::export_e57
void export_e57(const std::filesystem::path &path, const std::vector< E57ScanExport > &scans)
Export one or more XYZRGB clouds as separate scan positions in an E57 file.
reusex
Definition
filter_expression.hpp:12
reusex::CloudConstPtr
typename Cloud::ConstPtr CloudConstPtr
Definition
types.hpp:28
reusex::CloudNConstPtr
typename CloudN::ConstPtr CloudNConstPtr
Definition
types.hpp:32
reusex::io::E57ScanExport
A single scan position to write into an E57 file.
Definition
e57.hpp:40
reusex::io::E57ScanExport::name
std::string name
Scan name written into the E57 header.
Definition
e57.hpp:41
reusex::io::E57ScanExport::normals
CloudNConstPtr normals
Surface normals (nullptr = omit normals).
Definition
e57.hpp:43
reusex::io::E57ScanExport::cloud
CloudConstPtr cloud
XYZRGB point cloud (required).
Definition
e57.hpp:42
libs
reusex
include
io
e57.hpp
Generated by
1.17.0