ReUseX  0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
ply.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
11namespace reusex {
12class ProjectDB;
13}
14
15namespace reusex::io {
16
17// ── Import
18// ────────────────────────────────────────────────────────────────────
19
32void import_ply(ProjectDB &db, const std::filesystem::path &ply_path);
33
34// ── Export
35// ────────────────────────────────────────────────────────────────────
36
46void export_ply(const std::filesystem::path &path, const Cloud &cloud,
47 const CloudN *normals = nullptr);
48
49} // namespace reusex::io
void import_ply(ProjectDB &db, const std::filesystem::path &ply_path)
Import a point cloud from a PLY file into a ProjectDB.
void export_ply(const std::filesystem::path &path, const Cloud &cloud, const CloudN *normals=nullptr)
Export a point cloud to a binary PLY file.
pcl::PointCloud< PointT > Cloud
Definition types.hpp:26
pcl::PointCloud< NormalT > CloudN
Definition types.hpp:30