CortidQCT  1.2.2.52
BarycentricPoint.h
Go to the documentation of this file.
1 
13 #pragma once
14 
15 #include <array>
16 #include <type_traits>
17 
18 namespace CortidQCT {
19 
20 template <class T> class Mesh;
21 
26 template <class T, class Index> struct alignas(8) BarycentricPoint {
27 
28  static_assert(std::is_floating_point<T>::value,
29  "Scalar must be a floating point type");
30 
31  static_assert(std::is_integral<Index>::value,
32  "Index must be a integral type");
33 
35  std::array<T, 2> uv;
38 };
39 
40 } // namespace CortidQCT
Name namespace for CortidQCT library.
Definition: CortidQCT.h:23
A triangle mesh class.
Definition: BarycentricPoint.h:20
std::array< T, 2 > uv
Barycentric coordinates.
Definition: BarycentricPoint.h:29
Index triangleIndex
Triangle index.
Definition: BarycentricPoint.h:37
BarycentricPoint data type. Represents a points on triangulation in barycentric coordinates.
Definition: BarycentricPoint.h:26