Visual Computing Library
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/mesh.h>
27#include <vclib/mesh/requirements.h>
28
29namespace vcl {
30
31template<typename ScalarType>
32class PointCloudT;
33
34} // namespace vcl
35
36namespace vcl::pointcloud {
37
38template<typename Scalar>
39class Vertex;
40
41template<typename Scalar>
42class Vertex :
43 public vcl::Vertex<
44 PointCloudT<Scalar>,
45 vert::BitFlags,
46 vert::Coordinate3<Scalar>,
47 vert::Normal3<Scalar>,
48 vert::OptionalColor<Vertex<Scalar>>,
49 vert::OptionalQuality<Scalar, Vertex<Scalar>>,
50 vert::OptionalTexCoord<Scalar, Vertex<Scalar>>,
51 vert::OptionalMark<Vertex<Scalar>>,
52 vert::CustomComponents<Vertex<Scalar>>>
53{
54};
55
56} // namespace vcl::pointcloud
57
58namespace vcl {
59
77template<typename Scalar>
79 public Mesh<
80 mesh::VertexContainer<pointcloud::Vertex<Scalar>>,
81 mesh::BoundingBox3<Scalar>,
82 mesh::Mark,
83 mesh::Name,
84 mesh::TextureImages,
85 mesh::TransformMatrix<Scalar>,
86 mesh::CustomComponents>
87{
88public:
90 using ScalarType = Scalar;
91};
92
95
96} // namespace vcl
97
98#endif // VCL_MESHES_POINT_CLOUD_H
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:87
Scalar ScalarType
The scalar used to store all the data of the Mesh.
Definition point_cloud.h:90
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The Vertex class represents an Vertex element of the vcl::Mesh class.
Definition vertex.h:47
Definition point_cloud.h:53