Visual Computing Library
Loading...
Searching...
No Matches
mesh_components.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_MESH_MESH_COMPONENTS_H
24#define VCL_MESH_MESH_COMPONENTS_H
25
26#include "components/bounding_box.h"
27#include "components/color.h"
28#include "components/custom_components.h"
29#include "components/mark.h"
30#include "components/name.h"
31#include "components/texture_images.h"
32#include "components/texture_paths.h"
33#include "components/transform_matrix.h"
34
44namespace vcl::mesh {
45
52template<typename P>
54
55template<typename S>
57
60
63
66
69
72
75
78
80template<bool STORE_TEXTURE_IMAGES>
81using Textures =
82 std::conditional_t<STORE_TEXTURE_IMAGES, TextureImages, TexturePaths>;
83
85template<typename Scalar>
87
90
// end of mesh_components group
92
93} // namespace vcl::mesh
94
95#endif // VCL_MESH_MESH_COMPONENTS_H
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43
The BoundingBox component class represents an axis aligned bounding box. This class is usually used a...
Definition bounding_box.h:72
The Color class represents a RGBA color that will be part of an Element (e.g. Vertex,...
Definition color.h:66
The CustomComponents Component is a container of additional components associated to an Element (e....
Definition custom_components.h:92
The Mark class is an utility class useful to un-mark components in constant time.
Definition mark.h:90
The Name component class represents a simple name stored as string. This class is usually used as a c...
Definition name.h:67
The TextureImages class represents a component that stores the textures used by a mesh....
Definition texture_images.h:103
The TexturePaths class represents a component that stores the paths of the textures used by a mesh....
Definition texture_paths.h:81
The TransformMatrix class represents a component that stores a 4x4 matrix that can be used for a tran...
Definition transform_matrix.h:70
std::conditional_t< STORE_TEXTURE_IMAGES, TextureImages, TexturePaths > Textures
Definition mesh_components.h:82