-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtypes.h
68 lines (54 loc) · 963 Bytes
/
types.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/*
* Copyright (C) 2024, Inria
* GRAPHDECO research group, https://team.inria.fr/graphdeco
* All rights reserved.
*
* This software is free for non-commercial, research and evaluation use
* under the terms of the LICENSE.md file.
*
* For inquiries contact george.drettakis@inria.fr
*/
#pragma once
#ifndef __CUDACC__
#include <Eigen/Core>
struct Box
{
Box(Eigen::Vector3f minn, Eigen::Vector3f maxx) : minn(minn.x(), minn.y(), minn.z(), 0), maxx(maxx.x(), maxx.y(), maxx.z(), 0)
{}
Box() {};
Eigen::Vector4f minn;
Eigen::Vector4f maxx;
};
typedef Eigen::Matrix<float, 48, 1> SHs;
#else
struct Point
{
float xyz[3];
};
struct Point4
{
float xyz[4];
};
struct Box
{
Point4 minn;
Point4 maxx;
};
#endif
struct Node
{
int depth = -1;
int parent = -1;
int start;
int count_leafs;
int count_merged;
int start_children;
int count_children;
};
struct HalfNode
{
int parent = -1;
int start;
int start_children;
short dccc[4];
};