ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Toggle main menu visibility
Loading...
Searching...
No Matches
rhino.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
6
#pragma once
7
#include "reusex/types.hpp"
8
9
// OpenNURBS public needs to be included first (pulls in all ON_* types)
10
#include <opennurbs_public.h>
11
12
#include <pcl/PolygonMesh.h>
13
14
#include <memory>
15
16
namespace
reusex::io
{
17
18
// Forward declaration
19
struct
ExportScene
;
20
22
auto
configure_rhino_model
() -> std::unique_ptr<ONX_Model>;
23
25
auto
export_to_rhino
(
const
ExportScene
&scene) -> std::unique_ptr<ONX_Model>;
26
28
auto
make_rhino_pointcloud
(
CloudConstPtr
cloud)
29
-> std::unique_ptr<ON_PointCloud>;
30
32
auto
make_rhino_pointcloud
(
CloudConstPtr
cloud,
CloudNConstPtr
normals)
33
-> std::unique_ptr<ON_PointCloud>;
34
36
auto
make_rhino_mesh
(
const
pcl::PolygonMesh &mesh) -> std::unique_ptr<ON_Mesh>;
37
39
auto
make_sphere_mesh
(
double
cx,
double
cy,
double
cz,
double
radius,
40
int
resolution = 16) -> std::unique_ptr<ON_Mesh>;
41
42
}
// namespace reusex::io
reusex::io
Definition
e57.hpp:17
reusex::io::export_to_rhino
auto export_to_rhino(const ExportScene &scene) -> std::unique_ptr< ONX_Model >
Export a full ExportScene to a Rhino ONX_Model with layer hierarchy.
reusex::io::make_rhino_mesh
auto make_rhino_mesh(const pcl::PolygonMesh &mesh) -> std::unique_ptr< ON_Mesh >
Convert a PCL PolygonMesh to an ON_Mesh.
reusex::io::make_sphere_mesh
auto make_sphere_mesh(double cx, double cy, double cz, double radius, int resolution=16) -> std::unique_ptr< ON_Mesh >
Create a UV sphere mesh.
reusex::io::make_rhino_pointcloud
auto make_rhino_pointcloud(CloudConstPtr cloud) -> std::unique_ptr< ON_PointCloud >
Convert a PCL XYZRGB point cloud to an ON_PointCloud.
reusex::io::configure_rhino_model
auto configure_rhino_model() -> std::unique_ptr< ONX_Model >
Create a configured ONX_Model with ReUseX metadata, units, and tolerances.
reusex::CloudConstPtr
typename Cloud::ConstPtr CloudConstPtr
Definition
types.hpp:28
reusex::CloudNConstPtr
typename CloudN::ConstPtr CloudNConstPtr
Definition
types.hpp:32
reusex::io::ExportScene
Intermediate representation for exporting all project data.
Definition
export_scene.hpp:27
libs
reusex
include
io
rhino.hpp
Generated by
1.17.0