Visual Computing Library
Loading...
Searching...
No Matches
face.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_CONCEPTS_MESH_ELEMENTS_FACE_H
24#define VCL_CONCEPTS_MESH_ELEMENTS_FACE_H
25
26#include "element.h"
27
28#include <vclib/concepts/mesh/components.h>
29
37namespace vcl {
38
39namespace face {
40
46/* Port concepts into the face namespace */
47template<typename T>
49template<typename T>
51template<typename T>
53template<typename T>
55template<typename T>
57template<typename T>
59template<typename T>
61template<typename T>
63template<typename T>
65template<typename T>
67template<typename T>
69template<typename T>
71template<typename T>
73template<typename T>
75template<typename T>
77template<typename T>
79template<typename T>
81template<typename T>
83template<typename T>
85template<typename T>
87template<typename T>
89template<typename T>
91template<typename T>
93template<typename T>
95
// end of group
97
98} // namespace face
99
123template<typename T>
124concept FaceConcept =
125 ElementConcept<T> && RemoveRef<T>::ELEMENT_ID == ElemId::FACE &&
127 (RemoveRef<T>::VERTEX_NUMBER < 0 || RemoveRef<T>::VERTEX_NUMBER >= 3) &&
128 (!face::HasTriangleBitFlags<T> || RemoveRef<T>::VERTEX_NUMBER == 3) &&
131
132template<typename T>
134 RemoveRef<T>::VERTEX_NUMBER == 3 && FaceConcept<T>;
135
148template<typename T>
149concept PolygonFaceConcept = RemoveRef<T>::VERTEX_NUMBER < 0 && FaceConcept<T>;
150
151} // namespace vcl
152
153#endif // VCL_CONCEPTS_MESH_ELEMENTS_FACE_H
Definition element.h:31
The FaceConcept describes how a Face element that can be used for a FaceContainer should be organized...
Definition face.h:124
The PolygonFaceConcept describes how a Face element class should be organized to be a polygonal face ...
Definition face.h:149
Definition face.h:133
HasAdjacentEdges concept is satisfied only if a Element class provides the types and member functions...
Definition adjacent_edges.h:51
HasAdjacentFaces concept is satisfied only if a Element class provides the types and member functions...
Definition adjacent_faces.h:51
HasBitFlags concept is satisfied only if a Element class provides the member functions specified in t...
Definition bit_flags.h:42
HasColor concept is satisfied only if a Element/Mesh class provides the types and member functions sp...
Definition color.h:47
HasCustomComponents concept is satisfied only if a Element class provides the types and member functi...
Definition custom_components.h:41
HasFaceBitFlags concept is satisfied if one between vcl::comp::HasPolygonBitFlags and vcl::comp::HasT...
Definition bit_flags.h:124
HasMark concept is satisfied only if a Element/Mesh class provides the types and member functions spe...
Definition mark.h:47
HasNormal concept is satisfied only if a Element class provides the types and member functions specif...
Definition normal.h:47
HasOptionalAdjacentEdges concept is satisfied only if a class satisfies the vcl::comp::HasAdjacentEdg...
Definition adjacent_edges.h:125
HasOptionalAdjacentFaces concept is satisfied only if a class satisfies the vcl::comp::HasAdjacentFac...
Definition adjacent_faces.h:125
HasOptionalColor concept is satisfied only if a class satisfies the vcl::comp::HasColor concept and t...
Definition color.h:60
HasOptionalMark concept is satisfied only if a class satisfies the vcl::comp::HasMark concept and and...
Definition mark.h:66
HasOptionalNormal concept is satisfied only if a class satisfies the vcl::comp::HasNormal concept and...
Definition normal.h:60
HasOptionalPrincipalCurvature concept is satisfied only if a class satisfies the HasPrincipalCurvatur...
Definition principal_curvature.h:61
HasOptionalQuality concept is satisfied only if a class satisfies the vcl::comp::HasQuality concept a...
Definition quality.h:68
HasOptionalWedgeColors concept is satisfied only if a class satisfies the vcl::comp::HasWedgeColors c...
Definition wedge_colors.h:88
HasOptionalWedgeTexCoords concept is satisfied only if a class satisfied the vcl::comp::HasWedgeTexCo...
Definition wedge_tex_coords.h:93
HasPolygonBitFlags concept is satisfied only if a Element class (that should be a Face) provides the ...
Definition bit_flags.h:96
HasPrincipalCurvature concept is satisfied only if a Element class provides the types and member func...
Definition principal_curvature.h:48
HasQuality concept is satisfied only if a Element class provides the types and member functions speci...
Definition quality.h:47
HasTriangleBitFlags concept is satisfied only if a Element class (that should be a Face) provides the...
Definition bit_flags.h:110
HasVertexReferences concept is satisfied only if a Element class provides the types and member functi...
Definition vertex_references.h:43
HasWedgeColors concept is satisfied only if a Element class provides the types and member functions s...
Definition wedge_colors.h:51
HasWedgeTexCoords concept is satisfied only if a Element class provides the types and member function...
Definition wedge_tex_coords.h:52
SanityCheckAdjacentEdges concept.
Definition adjacent_edges.h:158
SanityCheckAdjacentFaces concept.
Definition adjacent_faces.h:158
SanityCheckWedgeColors concept.
Definition wedge_colors.h:118
SanityCheckWedgeTexCoords concept.
Definition wedge_tex_coords.h:124
Definition face.h:48
Definition face.h:52
Definition face.h:56
Definition face.h:58
Definition face.h:62
Definition face.h:64
Definition face.h:66
Definition face.h:70
Definition face.h:60
Definition face.h:68
Definition face.h:72
Definition face.h:82
Definition face.h:74
Definition face.h:80
Definition face.h:84
Definition face.h:86
Definition face.h:88
Definition face.h:92