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
56template<typename Scalar>
57class Vertex :
58 public vcl::Vertex<
59 PointCloudT<Scalar>,
60 vert::BitFlags,
61 vert::Position3<Scalar>,
62 vert::Normal3<Scalar>,
63 vert::OptionalColor<Vertex<Scalar>>,
64 vert::OptionalQuality<Scalar, Vertex<Scalar>>,
65 vert::OptionalTexCoord<Scalar, Vertex<Scalar>>,
66 vert::OptionalMark<Vertex<Scalar>>,
67 vert::CustomComponents<Vertex<Scalar>>>
68{
69};
70
71} // namespace vcl::pointcloud
72
73namespace vcl {
74
92template<typename Scalar>
94 public Mesh<
95 mesh::VertexContainer<pointcloud::Vertex<Scalar>>,
96 mesh::BoundingBox3<Scalar>,
97 mesh::Mark,
98 mesh::Name,
99 mesh::TextureImages,
100 mesh::TransformMatrix<Scalar>,
101 mesh::CustomComponents>
102{
103public:
105 using ScalarType = Scalar;
106};
107
114
121
122} // namespace vcl
123
124#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:102
Scalar ScalarType
The scalar used to store all the data of the Mesh.
Definition point_cloud.h:105
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:68