Types.h
Go to the documentation of this file.
1 /********************************************************************
2  *
3  * Project Artec 3D Scanning SDK
4  *
5  * Purpose: Basic SDK types
6  *
7  * Copyright: Artec Group
8  *
9  ********************************************************************/
10 
11 #ifndef _TYPES_H_
12 #define _TYPES_H_
13 
14 #include <artec/sdk/base/Point.h>
15 #include <artec/sdk/base/Matrix.h>
16 
17 namespace artec { namespace sdk { namespace base
18 {
19 
20 struct Size
21 {
22  Size() : width(0), height(0) {}
23  Size(int width_, int height_) : width(width_), height(height_) {}
24 
25  int width;
26  int height;
27 };
28 
30 {
31  UVCoordinates() : u(0.0f), v(0.0f) {}
32  UVCoordinates(float u_, float v_) : u(u_), v(v_) {}
33 
34  float u, v;
35 };
36 
37 struct Triangle
38 {
40 };
41 
42 struct TriangleUV
43 {
45 };
46 
48 {
49  union {
50  int data[3];
51  struct {
52  int x, y, z;
53  };
54  };
55 };
56 
57 } } } // namespace artec::sdk::base
58 
59 #endif //_TYPES_H_
Size(int width_, int height_)
Definition: Types.h:23
UVCoordinates(float u_, float v_)
Definition: Types.h:32
UVCoordinates uv[3]
Definition: Types.h:44