libigl v2.5.0
Loading...
Searching...
No Matches
sparse_voxel_grid.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 Francis Williams <francis@fwilliams.info>
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#ifndef IGL_SPARSE_VOXEL_GRID_H
9#define IGL_SPARSE_VOXEL_GRID_H
10
11#include "igl_inline.h"
12#include <Eigen/Core>
13
14namespace igl
15{
30 template <
31 typename DerivedP0,
32 typename Func,
33 typename DerivedS,
34 typename DerivedV,
35 typename DerivedI>
37 const Eigen::MatrixBase<DerivedP0>& p0,
38 const Func& scalarFunc,
39 const double eps,
40 const int expected_number_of_cubes,
41 Eigen::PlainObjectBase<DerivedS>& CS,
42 Eigen::PlainObjectBase<DerivedV>& CV,
43 Eigen::PlainObjectBase<DerivedI>& CI);
44}
45
46#ifndef IGL_STATIC_LIBRARY
47# include "sparse_voxel_grid.cpp"
48#endif
49
50#endif
#define IGL_INLINE
Definition igl_inline.h:15
Definition AABB.h:17
void sparse_voxel_grid(const Eigen::MatrixBase< DerivedP0 > &p0, const Func &scalarFunc, const double eps, const int expected_number_of_cubes, Eigen::PlainObjectBase< DerivedS > &CS, Eigen::PlainObjectBase< DerivedV > &CV, Eigen::PlainObjectBase< DerivedI > &CI)
Given a point, p0, on an isosurface, construct a shell of epsilon sized cubes surrounding the surface...