Ponca  aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
Loading...
Searching...
No Matches
knnGraphTraits.h
1/*
2 This Source Code Form is subject to the terms of the Mozilla Public
3 License, v. 2.0. If a copy of the MPL was not distributed with this
4 file, You can obtain one at http://mozilla.org/MPL/2.0/.
5*/
6
7
8#pragma once
9
10#include <Eigen/Geometry>
11
12namespace Ponca {
13
17template <typename _DataPoint>
19{
29 using DataPoint = _DataPoint;
30
31private:
32 using Scalar = typename DataPoint::Scalar;
33 using VectorType = typename DataPoint::VectorType;
34
35public:
41 using AabbType = Eigen::AlignedBox<Scalar, DataPoint::Dim>;
42
43 // Containers
44 using IndexType = int;
45 using PointContainer = std::vector<DataPoint>;
46 using IndexContainer = std::vector<IndexType>;
47};
48} // namespace Ponca
This Source Code Form is subject to the terms of the Mozilla Public License, v.
The default traits type used by the kd-tree.
_DataPoint DataPoint
The type used to store point data.
Eigen::AlignedBox< Scalar, DataPoint::Dim > AabbType
The type used to calculate node bounding boxes.