Visual Computing Library  devel
Loading...
Searching...
No Matches
point_cloud.h
1/*****************************************************************************
2 * VCLib *
3 * Visual Computing Library *
4 * *
5 * Copyright(C) 2021-2025 *
6 * Visual Computing Lab *
7 * ISTI - Italian National Research Council *
8 * *
9 * All rights reserved. *
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the Mozilla Public License Version 2.0 as published *
13 * by the Mozilla Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * This program is distributed in the hope that it will be useful, *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
19 * Mozilla Public License Version 2.0 *
20 * (https://www.mozilla.org/en-US/MPL/2.0/) for more details. *
21 ****************************************************************************/
22
23#ifndef VCL_MESHES_POINT_CLOUD_H
24#define VCL_MESHES_POINT_CLOUD_H
25
26#include <vclib/mesh.h>
27
28namespace vcl {
29
30template<typename ScalarType>
31class PointCloudT;
32
33} // namespace vcl
34
35namespace vcl::pointcloud {
36
37template<typename Scalar>
38class Vertex;
39
58template<typename Scalar>
59class Vertex :
60 public vcl::Vertex<
61 PointCloudT<Scalar>,
62 vert::BitFlags,
63 vert::Position3<Scalar>,
64 vert::Normal3<Scalar>,
65 vert::OptionalColor<Vertex<Scalar>>,
66 vert::OptionalQuality<Scalar, Vertex<Scalar>>,
67 vert::OptionalAdjacentVertexPointers<Vertex<Scalar>>,
68 vert::OptionalTexCoord<Scalar, Vertex<Scalar>>,
69 vert::OptionalMaterialIndex<Vertex<Scalar>>,
70 vert::OptionalMark<Vertex<Scalar>>,
71 vert::CustomComponents<Vertex<Scalar>>>
72{
73public:
74 friend void swap(Vertex& a, Vertex& b) { a.swap(b); }
75};
76
77} // namespace vcl::pointcloud
78
79namespace vcl {
80
98template<typename Scalar>
100 public Mesh<
101 mesh::VertexContainer<pointcloud::Vertex<Scalar>>,
102 mesh::BoundingBox3<Scalar>,
103 mesh::Mark,
104 mesh::Materials,
105 mesh::Name,
106 mesh::TransformMatrix<Scalar>,
107 mesh::CustomComponents>
108{
109public:
111 using ScalarType = Scalar;
112};
113
120
127
128} // namespace vcl
129
130#endif // VCL_MESHES_POINT_CLOUD_H
A class representing a box in N-dimensional space.
Definition box.h:46
The Mesh class represents a generic 3D mesh. A mesh is composed of a generic number of containers of ...
Definition mesh.h:68
The PointCloudT class is a mesh class that represents a point cloud.
Definition point_cloud.h:108
Scalar ScalarType
The scalar used to store all the data of the Mesh.
Definition point_cloud.h:111
The Vertex class represents an Vertex element of the vcl::Mesh class.
Definition vertex.h:46
The Vertex type used by the PointCloudT class.
Definition point_cloud.h:72