libigl v2.5.0
Loading...
Searching...
No Matches
octree.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2018 Gavin Barill <gavinpcb@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/
8
9#ifndef IGL_OCTREE
10#define IGL_OCTREE
11#include "igl_inline.h"
12#include <Eigen/Core>
13#include <vector>
14
15
16
17
18namespace igl
19{
44 template <typename DerivedP, typename IndexType, typename DerivedCH,
45 typename DerivedCN, typename DerivedW>
46 IGL_INLINE void octree(const Eigen::MatrixBase<DerivedP>& P,
47 std::vector<std::vector<IndexType> > & point_indices,
48 Eigen::PlainObjectBase<DerivedCH>& CH,
49 Eigen::PlainObjectBase<DerivedCN>& CN,
50 Eigen::PlainObjectBase<DerivedW>& W);
51}
52
53#ifndef IGL_STATIC_LIBRARY
54# include "octree.cpp"
55#endif
56
57#endif
58
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void octree(const Eigen::MatrixBase< DerivedP > &P, std::vector< std::vector< IndexType > > &point_indices, Eigen::PlainObjectBase< DerivedCH > &CH, Eigen::PlainObjectBase< DerivedCN > &CN, Eigen::PlainObjectBase< DerivedW > &W)
Given a set of 3D points P, generate data structures for a pointerless octree.