Atoms Crowd
7.0.0
KdTreeNode.h
1
/*
2
Copyright (c) 2010 University of Illinois
3
All rights reserved.
4
5
Developed by: DeNovo group, Graphis@Illinois
6
University of Illinois
7
http://denovo.cs.illinois.edu
8
http://graphics.cs.illinois.edu
9
10
Permission is hereby granted, free of charge, to any person obtaining a
11
copy of this software and associated documentation files (the
12
"Software"), to deal with the Software without restriction, including
13
without limitation the rights to use, copy, modify, merge, publish,
14
distribute, sublicense, and/or sell copies of the Software, and to
15
permit persons to whom the Software is furnished to do so, subject to
16
the following conditions:
17
18
* Redistributions of source code must retain the above copyright
19
notice, this list of conditions and the following disclaimers.
20
21
* Redistributions in binary form must reproduce the above
22
copyright notice, this list of conditions and the following disclaimers
23
in the documentation and/or other materials provided with the
24
distribution.
25
26
* Neither the names of DeNovo group, Graphics@Illinois,
27
University of Illinois, nor the names of its contributors may be used to
28
endorse or promote products derived from this Software without specific
29
prior written permission.
30
31
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
32
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
33
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
34
IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR
35
ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
36
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
37
SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE SOFTWARE.
38
*/
39
40
#pragma once
41
#include <AtomsUtils/Globals.h>
42
#include <vector>
43
#include <AtomsUtils/AtomsMath.h>
44
#include <AtomsUtils/KdTree/BoxEdge.h>
45
46
namespace
AtomsUtils
47
{
48
class
ATOMSUTILS_EXPORT
KdTreeNode
49
{
50
public
:
51
52
KdTreeNode
();
53
54
~
KdTreeNode
();
55
56
AtomsMath::Box3f extent;
57
58
// interior node variables
59
KdTreeNode
*left;
60
61
KdTreeNode
*right;
62
63
KdTreeNode
* parent;
64
65
// edge that creates splitting plane
66
const
BoxEdge
*splitEdge;
67
68
// leaf node variables
69
std::vector<int> *triangleIndices;
// array of indices into triangleMesh::triangleList
70
71
protected
:
72
73
bool
custom_mm;
74
};
75
}
76
AtomsUtils::BoxEdge
Definition:
BoxEdge.h:46
AtomsUtils::KdTreeNode
Definition:
KdTreeNode.h:49
AtomsUtils
AtomsCore namespace.
Definition:
Base64.h:13
Atoms
Public
AtomsUtils
KdTree
KdTreeNode.h